Move file links above sibling links
This commit is contained in:
@@ -26,24 +26,8 @@
|
||||
{{ 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> ›
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with $next }}
|
||||
<p class="mb-0" id="paige-prev">
|
||||
‹ <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if $file }}
|
||||
<div id="paige-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>
|
||||
@@ -58,6 +42,22 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ 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> ›
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with $next }}
|
||||
<p class="mb-0" id="paige-prev">
|
||||
‹ <a class="link-secondary" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if $last }}
|
||||
{{ partial "paige/page-footer-last.html" . }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user