From 9916ea5d2adc85fd8edd47afcc90334a6d7372d5 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 18 Feb 2026 19:22:19 +0000 Subject: [PATCH] feat(layouts): hide pager on root pages --- modules/blox/layouts/_partials/components/next-in-series.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}