|
|
|
@ -2,21 +2,27 @@
|
|
|
|
|
|
|
|
|
|
{{ $fileediturl := $page.Param "paige.file_edit_url" }}
|
|
|
|
|
{{ $filehistoryurl := $page.Param "paige.file_history_url" }}
|
|
|
|
|
{{ $file := false }}
|
|
|
|
|
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
|
|
|
|
|
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
|
|
|
|
{{ $next := $page.NextInSection }}
|
|
|
|
|
{{ $prev := $page.PrevInSection }}
|
|
|
|
|
|
|
|
|
|
{{ if $page.File }}
|
|
|
|
|
{{ if $fileediturl }}
|
|
|
|
|
{{ $file = true }}
|
|
|
|
|
{{ $fileediturl = printf $fileediturl $page.File.Path }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if $filehistoryurl }}
|
|
|
|
|
{{ $file = true }}
|
|
|
|
|
{{ $filehistoryurl = printf $filehistoryurl $page.File.Path }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
<footer class="mt-3 text-center text-secondary" id="paige-page-footer">
|
|
|
|
|
{{ if templates.Exists "partials/paige/page-footer-first.html" }}
|
|
|
|
|
{{ if or $file $first $last $next $prev }}
|
|
|
|
|
<footer class="mt-3 mw-100 text-center text-secondary" id="paige-page-footer">
|
|
|
|
|
{{ if $first }}
|
|
|
|
|
{{ partial "paige/page-footer-first.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
@ -36,7 +42,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if and $page.File (or $fileediturl $filehistoryurl) }}
|
|
|
|
|
{{ if $file }}
|
|
|
|
|
<div id="paige-file">
|
|
|
|
|
{{ if $fileediturl }}
|
|
|
|
|
<p class="mb-0" id="paige-file-edit">
|
|
|
|
@ -52,7 +58,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if templates.Exists "partials/paige/page-footer-last.html" }}
|
|
|
|
|
{{ if $last }}
|
|
|
|
|
{{ partial "paige/page-footer-last.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</footer>
|
|
|
|
|
{{ end }}
|
|
|
|
|