You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB
HTML

{{ $page := . }}
{{ $copyright := site.Copyright | markdownify | and ($page.Param "paige.site.disable_copyright" | not) }}
{{ $credit := $page.Param "paige.credit" }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
{{ $license := $page.Param "paige.license" | markdownify | and ($page.Param "paige.site.disable_license" | not) }}
{{ $microdata := $page.Params.paige.page.microdata }}
{{ if $credit }}
{{ $credit = markdownify $credit }}
{{ else }}
{{ $credit = `<a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige" target="_blank">Paige Theme</a>` | safeHTML }}
{{ end }}
{{ $credit = $credit | and ($page.Param "paige.site.disable_credit" | not) }}
{{ if or $copyright $credit $first $last $license }}
<footer id="paige-site-footer">
{{ partial "paige/func-include.html" (dict "name" "site-footer-first%s.html" "page" $page) }}
{{ with $copyright }}
<p class="paige-row-short text-center text-secondary" id="paige-copyright" {{ if $microdata }} itemprop="copyrightNotice" {{ end }}>{{ . }}</p>
{{ end }}
{{ with $license }}
<p class="paige-row-short text-center text-secondary" id="paige-license">{{ . }}</p>
{{ end }}
{{ with $credit }}
<p class="paige-row-short text-center text-secondary" id="paige-credit">{{ . }}</p>
{{ end }}
{{ partial "paige/func-include.html" (dict "name" "site-footer-last%s.html" "page" $page) }}
</footer>
{{ end }}