Change declarations to expressions
parent
b6d3261521
commit
0ace823e1d
@ -1,17 +1,14 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ $first := templates.Exists "partials/paige/header-first.html" }}
|
|
||||||
{{ $last := templates.Exists "partials/paige/header-last.html" }}
|
|
||||||
|
|
||||||
<header id="paige-header">
|
<header id="paige-header">
|
||||||
{{ if $first }}
|
{{ if templates.Exists "partials/paige/header-first.html" }}
|
||||||
{{ partial "paige/header-first.html" $page }}
|
{{ partial "paige/header-first.html" $page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "paige/menu.html" $page }}
|
{{ partial "paige/menu.html" $page }}
|
||||||
{{ partial "paige/breadcrumb.html" . }}
|
{{ partial "paige/breadcrumb.html" . }}
|
||||||
|
|
||||||
{{ if $last }}
|
{{ if templates.Exists "partials/paige/header-last.html" }}
|
||||||
{{ partial "paige/header-last.html" $page }}
|
{{ partial "paige/header-last.html" $page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue