Add condition around header

master
Will Faught 2 years ago
parent a02a441bb5
commit 4a6374f460

@ -1,5 +1,6 @@
{{ $page := . }}
{{ if or $page.Ancestors site.Menus.main }}
<header id="paige-header">
{{ if templates.Exists "partials/paige/header-first.html" }}
{{ partial "paige/header-first.html" $page }}
@ -12,3 +13,4 @@
{{ partial "paige/header-last.html" $page }}
{{ end }}
</header>
{{ end }}

Loading…
Cancel
Save