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.

41 lines
1.3 KiB
HTML

{{ $page := . }}
{{ $copyright := site.Copyright | markdownify }}
{{ $credit := $page.Param "paige.credit" }}
{{ $theme := "https://github.com/willfaught/paige" }}
{{ $license := $page.Param "paige.license" | markdownify }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
{{ if eq $credit nil }}
{{ $credit = `<a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a>` | markdownify }}
{{ else }}
{{ $credit = markdownify $credit }}
{{ end }}
<footer class="mb-3 text-center text-secondary" id="paige-footer">
{{ if templates.Exists "partials/paige/footer-first.html" }}
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if or $copyright $credit $license }}
<div class="mb-3" id="paige-site-footer">
{{ with $copyright }}
<p class="mb-0" id="paige-copyright">{{ . }}</p>
{{ end }}
{{ with $license }}
<p class="mb-0" id="paige-license">{{ . }}</p>
{{ end }}
{{ with $credit }}
<p class="mb-0" id="paige-credit">{{ . }}</p>
{{ end }}
</div>
{{ end }}
{{ if templates.Exists "partials/paige/footer-last.html" }}
{{ partial "paige/footer-last.html" . }}
{{ end }}
</footer>