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:
parent
883c9ec553
commit
45d3fa868e
|
@ -24,7 +24,7 @@
|
|||
</div>
|
||||
{{- end }}
|
||||
|
||||
{{- $pages := union .RegularPages .Sections }}
|
||||
{{- $pages := .Pages }}
|
||||
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
|
|
Loading…
Reference in New Issue