{{if not (in .Params.hide "breadcrumb")}} {{end}} {{$pagetitle := .Title}} {{if eq $pagetitle ""}} {{with .File}}{{$pagetitle = .BaseFileName}}{{end}} {{end}} {{ $cPage := .}} {{ $elements := (where .Sections "NONONO" false) }} {{ $isSubPage := .Params.subpage }} {{ $subpages := (where (where (where .Sections.ByWeight "Params.subpage" true) "Params.hidden" "ne" true ) "Kind" "section")}} {{ $pages := (where (where .CurrentSection.Pages.ByWeight "Kind" "page") "Params.hidden" "ne" true ) }} {{if $isSubPage }}

{{.Parent.Title}}{{$pagetitle}}

{{else}}

{{.CurrentSection.Title}}{{if .IsPage }}{{$pagetitle}}{{end}}

{{end}} {{if gt (len $subpages) 0}} {{ $elements = $subpages }} {{else if $isSubPage }} {{ $elements = (where (where .Parent.Sections.ByWeight "Params.subpage" true) "Params.hidden" "ne" true ) }} {{else if gt (len $pages) 0}} {{ $elements = $pages }} {{else}} {{end}} {{ if gt (len $elements) 0}} {{ end }} {{if not (in .Params.hide "toc")}}
{{ T "jump-to-section"}} {{ .TableOfContents }}
{{end}}
{{- with .Content -}} {{ . | replaceRE "()" `${1}${3}${4}` | safeHTML }} {{- else -}} {{with index .Pages 0}} {{- else -}} No content {{- end -}} {{- end -}}
{{if not (in .Params.hide "nextpage")}}
{{ partial "_next-prev-page.html" .CurrentSection }}
{{end -}} {{ define "breadcrumbnav" }} {{ if .p1.Parent }} {{ if .p1.Parent.IsHome}}
  • {{ T "home"}}
  • {{else}} {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} {{end}} {{ else if not .p1.IsHome }} {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ end }}
  • {{ if ne .p1 .p2 }}{{ end }} {{ .p1.Title }} {{ if ne .p1 .p2 }}{{ end }}
  • {{ end }}