diff --git a/layouts/index.html b/layouts/index.html index 84d95d5..60fec23 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@

All Posts

- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") (index .Site.Params "paginate" | default 10) }} + {{- $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) -}} {{ if ne $paginator.TotalPages 0 }} {{ range $paginator.Pages.ByDate.Reverse }} {{ .Render "summary" }} {{ end }} {{ else }}