From 45d3fa868e3227d67ca74348a063e89d766c6160 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 14 Apr 2022 14:39:09 +0800 Subject: [PATCH] use .Pages instead of .RegularPages in list layout othewise the count in taxonomy may be inconsistant with the items in the taxonomy list page, if there's any section page using taxonomy --- 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 f4ff6ec..df22aac 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -24,7 +24,7 @@ {{- end }} -{{- $pages := union .RegularPages .Sections }} +{{- $pages := .Pages }} {{- if .IsHome }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}