diff --git a/modules/blox/layouts/_partials/components/next-in-series.html b/modules/blox/layouts/_partials/components/next-in-series.html index 2dde401a..00c94a6f 100644 --- a/modules/blox/layouts/_partials/components/next-in-series.html +++ b/modules/blox/layouts/_partials/components/next-in-series.html @@ -1,5 +1,5 @@ {{ if .Params.pager | default true }} - {{ if or .NextInSection .PrevInSection }} + {{ if and .Section (or .NextInSection .PrevInSection) }} {{ $next := .NextInSection }} {{ $prev := .PrevInSection }} {{ if (eq (.Scratch.Get "invert_pager") true) | default .Params.invert_pager | default false }}