summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-14 14:39:09 +0800
committerReorx <novoreorx@gmail.com>2022-04-14 14:39:29 +0800
commit45d3fa868e3227d67ca74348a063e89d766c6160 (patch)
tree44001724e1a0e48d277f69e3783b8ccbd64e0686
parent883c9ec553e3fcfb9067e2d75fd1f17c72b855bf (diff)
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
-rw-r--r--layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
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 @@
</div>
{{- end }}
-{{- $pages := union .RegularPages .Sections }}
+{{- $pages := .Pages }}
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}