Files
paige-hugo/layouts/partials/paige/footer.html
2023-02-05 19:51:09 -08:00

27 lines
873 B
HTML

{{ $page := . }}
{{ $copyright := site.Copyright }}
{{ $credit := $page.Param "paige.credit.link.hide" | not }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
{{ if or $copyright $credit $first $last }}
<footer>
{{ if $first }}
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if $copyright }}
<p class="{{ if $credit }} mb-0 {{ end }} text-center text-secondary">{{ $copyright | markdownify }}</p>
{{ end }}
{{ if $credit }}
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ end }}
{{ if $last }}
{{ partial "paige/footer-last.html" . }}
{{ end }}
</footer>
{{ end }}