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

{{ . | markdownify }}

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

{{ . | markdownify }}

{{ end }}
{{ end }} {{ with site.Menus.main }} {{ end }} {{ partial "paige/breadcrumbs.html" . }} {{ if templates.Exists "partials/paige/header-last.html" }} {{ partial "paige/header-last.html" $page }} {{ end }}
{{ end }}