diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4c845890..f734ee9c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,18 +1,14 @@ {{ partial "header.html" . }} -{{ $pctx := . }} -{{ if .IsHome }} -{{ $pctx = .Site }} -{{ else }} +{{ if not .IsHome }} {{ end }} -{{ $paginator := .Paginate (where $pctx.RegularPages "Type" "in" .Site.Params.mainSections) }} +{{ $paginator := .Paginate (where .Site.RegularPages ".Params.type" "!=" "page") }} -{{ if gt $paginator.TotalPages 0 }} {{ range $index, $page := $paginator.Pages }}
@@ -27,7 +23,6 @@
{{ end }} -{{ end }} {{ if gt $paginator.TotalPages 1 }}