Files
paige-hugo/layouts/partials/paige/header.html
2023-03-19 21:59:53 -07:00

24 lines
610 B
HTML

{{ $page := . }}
{{ $first := templates.Exists "partials/paige/header-first.html" }}
{{ $last := templates.Exists "partials/paige/header-last.html" }}
{{ $menu := site.Menus.main }}
{{ if or $first $last $menu }}
<header id="paige-header">
{{ if $first }}
{{ partial "paige/header-first.html" $page }}
{{ end }}
{{ if $menu }}
{{ partial "paige/menu.html" $page }}
{{ end }}
{{ partial "paige/breadcrumb.html" . }}
{{ if $last }}
{{ partial "paige/header-last.html" $page }}
{{ end }}
</header>
{{ end }}