From fe94f1b2ff6a8e57d57fec5280c7eded58934d7b Mon Sep 17 00:00:00 2001 From: vringar Date: Mon, 28 Jun 2021 14:16:55 +0200 Subject: [PATCH] Use .Pages instead of site.RegularPages in list.html This results in Section Pages only showing the pages of their respective Sections instead of showing all available articles. --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 31f204e..a40fff2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@

{{ i18n .Title }}

- {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ $pages := where .Pages "Type" "in" site.Params.mainSections }} {{ range $pages }}