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