diff --git a/layouts/partials/paige/page-footer.html b/layouts/partials/paige/page-footer.html index dc9d06d6..bc946fcc 100644 --- a/layouts/partials/paige/page-footer.html +++ b/layouts/partials/paige/page-footer.html @@ -2,6 +2,8 @@ {{ $fileediturl := $page.Param "paige.file_edit_url" }} {{ $filehistoryurl := $page.Param "paige.file_history_url" }} +{{ $next := $page.NextInSection }} +{{ $prev := $page.PrevInSection }} {{ if $page.File }} {{ if $fileediturl }} @@ -18,15 +20,15 @@ {{ partial "paige/page-footer-first.html" . }} {{ end }} - {{ if or $page.PrevInSection $page.NextInSection }} + {{ if or $next $prev }}