diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 43eaa3f..290b02f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,12 @@
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} - {{ $paginator := .Paginate (where .Site.RegularPages "Type" $contentTypeName) }} + + {{ $PageContext := . }} + {{ if .IsHome }} + {{ $PageContext = .Site }} + {{ end }} + {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{ range $paginator.Pages }}