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.

52 lines
1.9 KiB
HTML

{{ $page := . }}
{{ $copyright := site.Copyright | markdownify }}
{{ $theme := "https://github.com/willfaught/paige" }}
{{ $fileediturl := $page.Param "paige.file_edit_url" }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
{{ if and $fileediturl $page.File }}
{{ $fileediturl = printf $fileediturl $page.File.Path }}
{{ end }}
<footer class="mb-3" id="paige-footer">
{{ if templates.Exists "partials/paige/footer-first.html" }}
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if or $page.PrevInSection $page.NextInSection }}
<div class="mb-3" id="paige-prev-next">
{{ if $page.PrevInSection }}
<p class="mb-0 text-center text-secondary" id="paige-prev">
<a class="link-secondary" href="{{ $page.PrevInSection.Permalink }}">&larr; {{ $page.PrevInSection.Title }}</a>
</p>
{{ end }}
{{ if $page.NextInSection }}
<p class="mb-0 text-center text-secondary" id="paige-next">
<a class="link-secondary" href="{{ $page.NextInSection.Permalink }}">{{ $page.NextInSection.Title }} &rarr;</a>
</p>
{{ end }}
</div>
{{ end }}
{{ if $fileediturl }}
<p class="text-center" id="paige-file-link">
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
</p>
{{ end }}
{{ with $copyright }}
<p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
{{ end }}
<p class="mb-0 text-center" id="paige-credit">
<a class="link-secondary text-decoration-none" href="{{ $theme }}" {{ with $target }} target="{{ . }}" {{ end }}>Paige Theme</a>
</p>
{{ if templates.Exists "partials/paige/footer-last.html" }}
{{ partial "paige/footer-last.html" . }}
{{ end }}
</footer>