{{ $page := . }} {{ $ancestors := $page.Ancestors }} {{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }} {{ $description := $page.Param "paige.site_description" | markdownify }} {{ $first := templates.Exists "partials/paige/site-header-first.html" }} {{ $last := templates.Exists "partials/paige/site-header-last.html" }} {{ $links := false }} {{ $menu := site.Menus.main }} {{ $pills := false }} {{ $tabs := false }} {{ $title := $page.Param "paige.site_title" | markdownify }} {{ $underline := false }} {{ if eq $basepath "/" }} {{ $basepath = "" }} {{ end }} {{ $pagepath := strings.TrimPrefix $basepath $page.RelPermalink }} {{ with $page.Param "paige.menu_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 $ancestors $description $first $last $menu $title }}
{{ if $first }} {{ partial "paige/site-header-first.html" $page }} {{ end }} {{ with $title }}

{{ . }}

{{ end }} {{ with $description }}

{{ . }}

{{ end }} {{ with $menu }} {{ end }} {{ with $ancestors }} {{ end }} {{ if $last }} {{ partial "paige/site-header-last.html" $page }} {{ end }}
{{ end }}