Add page-footer.html
parent
31ebc27623
commit
afc135dd10
@ -0,0 +1,56 @@
|
|||||||
|
{{ $page := . }}
|
||||||
|
|
||||||
|
{{ $fileediturl := $page.Param "paige.file_edit_url" }}
|
||||||
|
{{ $filehistoryurl := $page.Param "paige.file_history_url" }}
|
||||||
|
|
||||||
|
{{ if $page.File }}
|
||||||
|
{{ if $fileediturl }}
|
||||||
|
{{ $fileediturl = printf $fileediturl $page.File.Path }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if $filehistoryurl }}
|
||||||
|
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<footer class="mb-3 text-center text-secondary" id="paige-page-footer">
|
||||||
|
{{ if templates.Exists "partials/paige/page-footer-first.html" }}
|
||||||
|
{{ partial "paige/page-footer-first.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or $page.PrevInSection $page.NextInSection }}
|
||||||
|
<div class="mb-3" id="paige-prev-next">
|
||||||
|
{{ with $page.PrevInSection }}
|
||||||
|
<p class="mb-0" id="paige-next">
|
||||||
|
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> ›
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with $page.NextInSection }}
|
||||||
|
<p class="mb-0" id="paige-prev">
|
||||||
|
‹ <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if and $page.File (or $fileediturl $filehistoryurl) }}
|
||||||
|
<div id="paige-file">
|
||||||
|
{{ if $fileediturl }}
|
||||||
|
<p class="mb-0" id="paige-file-edit">
|
||||||
|
<a class="link-secondary" href="{{ $fileediturl | safeURL }}">{{ i18n "paige_edit_this_page" }}</a>
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if $filehistoryurl }}
|
||||||
|
<p class="mb-0" id="paige-file-history">
|
||||||
|
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if templates.Exists "partials/paige/page-footer-last.html" }}
|
||||||
|
{{ partial "paige/page-footer-last.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
</footer>
|
Loading…
Reference in New Issue