From 4fe8d32f2af1bc286a245df1ad25cf4134e00b50 Mon Sep 17 00:00:00 2001 From: ROOMrepair Date: Tue, 12 Nov 2024 21:02:41 +0800 Subject: [PATCH] fix: fix pagination in some unrendered index pages Signed-off-by: ROOMrepair --- layouts/partials/findFirstInNextSection.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/findFirstInNextSection.html b/layouts/partials/findFirstInNextSection.html index 26834e793..6c2e113a1 100644 --- a/layouts/partials/findFirstInNextSection.html +++ b/layouts/partials/findFirstInNextSection.html @@ -1,9 +1,13 @@ {{ if ne .Parent.CurrentSection .Parent.FirstSection }} {{ with .}} +{{ if eq .Params._build.render false }} +{{ partial "findFirstInNextSection" (index .Pages 0)}} +{{ else }} {{ end }} +{{ end }} {{ end }} \ No newline at end of file