Move file links above sibling links

master
Will Faught 12 months ago
parent 82c67bba9a
commit 2ee8b33aff

@ -26,33 +26,33 @@
{{ partial "paige/page-footer-first.html" . }}
{{ end }}
{{ if or $next $prev }}
<div class="mb-3" id="paige-prev-next">
{{ with $prev }}
<p class="mb-0" id="paige-next">
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> &rsaquo;
{{ if $file }}
<div class="mb-3" 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 }}
{{ with $next }}
<p class="mb-0" id="paige-prev">
&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
{{ 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 $file }}
<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>
{{ if or $next $prev }}
<div id="paige-prev-next">
{{ with $prev }}
<p class="mb-0" id="paige-next">
<a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a> &rsaquo;
</p>
{{ end }}
{{ if $filehistoryurl }}
<p class="mb-0" id="paige-file-history">
<a class="link-secondary" href="{{ $filehistoryurl | safeURL }}">{{ i18n "paige_edit_history" }}</a>
{{ with $next }}
<p class="mb-0" id="paige-prev">
&lsaquo; <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
</p>
{{ end }}
</div>

Loading…
Cancel
Save