From 1f66b6a8302b68049d4385c54d9cd014385d5500 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Mon, 19 Aug 2019 10:55:14 +1000 Subject: [PATCH] Revert "Adjusted post list for Hugo v0.57.0" --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index c1a00bb..c500765 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ define "content" }}
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} + {{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }} {{ range $paginator.Pages }} {{ if .Draft }} {{ .Scratch.Set "draftPage" true }}