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
This commit is contained in:
Reorx 2022-04-14 14:39:09 +08:00
parent 883c9ec553
commit 45d3fa868e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
</div> </div>
{{- end }} {{- end }}
{{- $pages := union .RegularPages .Sections }} {{- $pages := .Pages }}
{{- if .IsHome }} {{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}