Simplify copyright

This commit is contained in:
Will Faught
2023-02-09 23:24:10 -08:00
parent a5fb4b305c
commit 46ccb3181f

View File

@@ -1,6 +1,6 @@
{{ $page := . }} {{ $page := . }}
{{ $copyright := site.Copyright }} {{ $copyright := site.Copyright | markdownify }}
{{ $credit := $page.Param "paige.credit.link.hide" | not }} {{ $credit := $page.Param "paige.credit.link.hide" | not }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }}
@@ -11,8 +11,8 @@
{{ partial "paige/footer-first.html" . }} {{ partial "paige/footer-first.html" . }}
{{ end }} {{ end }}
{{ if $copyright }} {{ with $copyright }}
<p class="{{ if $credit }} mb-0 {{ end }} text-center text-secondary" id="paige-copyright">{{ $copyright | markdownify }}</p> <p class="{{ if $credit }} mb-0 {{ end }} text-center text-secondary" id="paige-copyright">{{ . }}</p>
{{ end }} {{ end }}
{{ if $credit }} {{ if $credit }}