diff --git a/layouts/index.html b/layouts/index.html index 0c5dcd8..ead42da 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ {{- end }} {{- $mainSections := .Site.Params.mainSections }} - {{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }} + {{- $paginator := .Paginate (where .Site.RegularPages "Type" "in" $mainSections) }} {{- if gt $paginator.TotalNumberOfElements 0 }}
{{- range $paginator.Pages }}