{{if not .Params.hide_breadcrumb}} {{end}} {{if not .Params.layout }} {{$pagetitle := .Title}} {{if eq $pagetitle ""}}{{$pagetitle = .File.BaseFileName}}{{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 }} {{else}}

{{.Title}}

{{end}} {{if not .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 .Params.hide_nextpage}}
{{ partial "_next-prev-page.html" .CurrentSection }}
{{end -}} {{ define "breadcrumbnav" }} {{ if .p1.Parent }} {{ if .p1.Parent.IsHome}} {{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 }} {{ end }}