m "paige.pages.disable_prev" | not) }}

{{ if $page.File }}
    {{ if $edit }}
        {{ $edit = printf $edit $page.File.Path }}
    {{ end }}

    {{ if $history }}
        {{ $history = printf $history $page.File.Path }}
    {{ end }}
{{ end }}

{{ if or $edit $history $first $last $next $prev }}
    <footer class="mw-100" id="paige-page-footer">
        {{ partial "paige/func-include.html" (dict "name" "page-footer-first%s.html" "page" $page) | safeHTML }}

        {{ if or $edit $history }}
           