Add condition around header
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user