First, last includes for body, footer, head, header, and main tags
parent
3bc024bc9e
commit
246a650445
@ -1,11 +1,22 @@
|
|||||||
{{ if or .Site.Copyright (not .Site.Params.paige.hide_theme_link) }}
|
{{ $copyright := .Site.Copyright }}
|
||||||
|
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
|
||||||
|
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
|
||||||
|
{{ $showlink := not .Site.Params.paige.hide_theme_link }}
|
||||||
|
|
||||||
|
{{ if or $copyright $first $last $showlink }}
|
||||||
<footer>
|
<footer>
|
||||||
{{ if and .Site.Copyright (not .Site.Params.paige.hide_theme_link) }}
|
{{ if $first }}
|
||||||
<p class="text-center text-secondary">{{ .Site.Copyright | markdownify }} · <a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
|
{{ partial "paige/footer-first.html" . }}
|
||||||
{{ else if .Site.Copyright }}
|
{{ end }}
|
||||||
<p class="text-center text-secondary">{{ .Site.Copyright | markdownify }}</p>
|
{{ if and $copyright $showlink }}
|
||||||
{{ else if not .Site.Params.paige.hide_theme_link }}
|
<p class="text-center text-secondary">{{ $copyright | markdownify }} · <a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
|
||||||
|
{{ else if $copyright }}
|
||||||
|
<p class="text-center text-secondary">{{ $copyright | markdownify }}</p>
|
||||||
|
{{ else if $showlink }}
|
||||||
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
|
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if $last }}
|
||||||
|
{{ partial "paige/footer-last.html" . }}
|
||||||
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
{{ if .Site.Menus.main }}
|
{{ $first := templates.Exists "partials/paige/header-first.html" }}
|
||||||
|
{{ $last := templates.Exists "partials/paige/header-last.html" }}
|
||||||
|
{{ $menu := .Site.Menus.main }}
|
||||||
|
|
||||||
|
{{ if or $first $last $menu }}
|
||||||
<header>
|
<header>
|
||||||
|
{{ if $first }}
|
||||||
|
{{ partial "paige/header-first.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if $menu }}
|
||||||
{{ partial "paige/menu.html" . }}
|
{{ partial "paige/menu.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if $last }}
|
||||||
|
{{ partial "paige/header-last.html" . }}
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue