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