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