From 5e849aaca08c49ad71e46b15761134e0aca79eec Mon Sep 17 00:00:00 2001 From: Neal Caffery Date: Thu, 26 May 2022 23:38:12 +0800 Subject: [PATCH] fix issue #141 --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}