Add condition around header
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
<header id="paige-header">
|
||||
{{ 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 }}
|
||||
{{ end }}
|
||||
@@ -11,4 +12,5 @@
|
||||
{{ if templates.Exists "partials/paige/header-last.html" }}
|
||||
{{ partial "paige/header-last.html" $page }}
|
||||
{{ end }}
|
||||
</header>
|
||||
</header>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user