diff options
author | Huy Tran <hoang.huy.tran@gmail.com> | 2019-08-19 03:55:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 03:55:14 +0300 |
commit | 1f66b6a8302b68049d4385c54d9cd014385d5500 (patch) | |
tree | 859dfd2e2e1448384f3fbf804e21880bf67bb6a0 | |
parent | 19b2178a4133b8616def7c8617e909e18d347789 (diff) |
Revert "Adjusted post list for Hugo v0.57.0"
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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" }} <div class="post-list"> - {{ $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 }} |