Add condition around header
parent
a02a441bb5
commit
4a6374f460
@ -1,14 +1,16 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
<header id="paige-header">
|
{{ if or $page.Ancestors site.Menus.main }}
|
||||||
{{ if templates.Exists "partials/paige/header-first.html" }}
|
<header id="paige-header">
|
||||||
{{ partial "paige/header-first.html" $page }}
|
{{ if templates.Exists "partials/paige/header-first.html" }}
|
||||||
{{ end }}
|
{{ partial "paige/header-first.html" $page }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "paige/menu.html" $page }}
|
{{ partial "paige/menu.html" $page }}
|
||||||
{{ partial "paige/breadcrumbs.html" . }}
|
{{ partial "paige/breadcrumbs.html" . }}
|
||||||
|
|
||||||
{{ 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 }}
|
||||||
|
Loading…
Reference in New Issue