{{ $page := . }} {{ $basePath := path.Clean (urls.Parse (relLangURL "")).Path }} {{ $breadcrumbs := $page.Ancestors.Reverse | and ($page.Param "paige.site.disable_breadcrumbs" | not) }} {{ $description := $page.Param "paige.site.description" | markdownify | and ($page.Param "paige.site.disable_description" | not) }} {{ $first := templates.Exists "partials/paige/site-header-first.html" }} {{ $last := templates.Exists "partials/paige/site-header-last.html" }} {{ $links := false }} {{ $menu := $page.Param "paige.site.disable_menu" | not }} {{ $pills := false }} {{ $style := $page.Param "paige.site.menu_style" }} {{ $tabs := false }} {{ $title := site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }} {{ $underline := false }} {{ if eq $basePath "/" }} {{ $basePath = "" }} {{ end }} {{ $pagePath := strings.TrimPrefix $basePath $page.RelPermalink }} {{ with $style }} {{ if eq . "pills" }} {{ $pills = true }} {{ else if eq . "tabs" }} {{ $tabs = true }} {{ else if eq . "underline" }} {{ $underline = true }} {{ else }} {{ $links = true }} {{ end }} {{ else }} {{ $links = true }} {{ end }} {{ if or $breadcrumbs $description $first $last $menu $title }}
{{ partial "paige/func-include.html" (dict "name" "site-header-first%s.html" "page" $page) | safeHTML }} {{ with $title }}
{{ . }}
{{ end }} {{ with $description }}
{{ . }}
{{ end }} {{ if $menu }} {{ with site.Menus.main }} {{ else }} {{ $pages := site.Sections }} {{ range $name, $taxonomy := site.Taxonomies }} {{ if and $taxonomy.Page $taxonomy.Page.RelPermalink }} {{ $pages = $pages | append $taxonomy.Page }} {{ end }} {{ end }} {{ $pages = sort $pages "LinkTitle" }} {{ end }} {{ end }} {{ with $breadcrumbs }} {{ end }} {{ partial "paige/func-include.html" (dict "name" "site-header-last%s.html" "page" $page) | safeHTML }}
{{ end }}