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.
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
{{ $page := . }}
|
|
|
|
{{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.hide_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.hide_license" | not) }}
|
|
{{ $theme := "https://github.com/willfaught/paige" }}
|
|
|
|
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
|
|
|
|
{{ if eq $credit nil }}
|
|
{{ $credit = `<a class="link-secondary text-decoration-none" href="{{ $theme }}" {{ with $target }} target="{{ . }}" {{ end }}>Paige Theme</a>` | markdownify }}
|
|
{{ else }}
|
|
{{ $credit = markdownify $credit }}
|
|
{{ end }}
|
|
|
|
{{ $credit = $credit | and ($page.Param "paige.site.hide_credit" | not) }}
|
|
|
|
{{ if or $copyright $credit $first $last $license }}
|
|
<footer id="paige-site-footer">
|
|
{{ if $first }}
|
|
{{ partial "paige/footer-first.html" . }}
|
|
{{ end }}
|
|
|
|
{{ with $copyright }}
|
|
<p class="paige-row-narrow text-center text-secondary" id="paige-copyright">{{ . }}</p>
|
|
{{ end }}
|
|
|
|
{{ with $license }}
|
|
<p class="paige-row-narrow text-center text-secondary" id="paige-license">{{ . }}</p>
|
|
{{ end }}
|
|
|
|
{{ with $credit }}
|
|
<p class="paige-row-narrow text-center text-secondary" id="paige-credit">{{ . }}</p>
|
|
{{ end }}
|
|
|
|
{{ if $last }}
|
|
{{ partial "paige/footer-last.html" . }}
|
|
{{ end }}
|
|
</footer>
|
|
{{ end }}
|