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.
59 lines
2.4 KiB
HTML
59 lines
2.4 KiB
HTML
{{ $page := . }}
|
|
|
|
{{ $fileediturl := $page.Param "paige.file_edit_url" | and ($page.Param "paige.page.hide_edit" | not) }}
|
|
{{ $filehistoryurl := $page.Param "paige.file_history_url" | and ($page.Param "paige.page.hide_history" | not) }}
|
|
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
|
|
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
|
{{ $next := $page.NextInSection | and ($page.Param "paige.page.hide_next" | not) }}
|
|
{{ $prev := $page.PrevInSection | and ($page.Param "paige.page.hide_prev" | not) }}
|
|
|
|
{{ if $page.File }}
|
|
{{ if $fileediturl }}
|
|
{{ $fileediturl = printf $fileediturl $page.File.Path }}
|
|
{{ end }}
|
|
|
|
{{ if $filehistoryurl }}
|
|
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if or $fileediturl $filehistoryurl $first $last $next $prev }}
|
|
<footer class="mw-100" id="paige-page-footer">
|
|
{{ if $first }}
|
|
{{ partial "paige/page-footer-first.html" . }}
|
|
{{ end }}
|
|
|
|
{{ if or $fileediturl $filehistoryurl }}
|
|
<div id="paige-file">
|
|
{{ if $fileediturl }}
|
|
<div class="paige-row-narrow text-center text-secondary" id="paige-edit">
|
|
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if $filehistoryurl }}
|
|
<div class="paige-row-narrow text-center text-secondary" id="paige-history">
|
|
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if or $next $prev }}
|
|
<div id="paige-siblings">
|
|
{{ with $prev }}
|
|
<div class="paige-row-narrow text-center text-secondary" id="paige-next"><a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> ›</div>
|
|
{{ end }}
|
|
|
|
{{ with $next }}
|
|
<div class="paige-row-narrow text-center text-secondary" id="paige-prev">‹ <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a></div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if $last }}
|
|
{{ partial "paige/page-footer-last.html" . }}
|
|
{{ end }}
|
|
</footer>
|
|
{{ end }}
|