From d9c228117bff094eb3545999364a8533f141467d Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 8 Sep 2022 00:25:50 +0800 Subject: fix all pages query issues in: list, archives, newsletter section, post_nav_links --- layouts/_default/list.html | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts/_default/list.html') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5797a30..67e1897 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -32,6 +32,7 @@ {{- $pages := .Pages }} {{- if .IsHome }} + {{/* get all regular pages instead of pages in a section */}} {{- $pages = where site.RegularPages "Section" "in" site.Params.mainSections }} {{- end }} {{- $pages = where $pages "Params.hidden" "!=" true }} -- cgit v1.2.3