diff options
author | Huy Tran <hoang.huy.tran@gmail.com> | 2019-08-19 04:36:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 04:36:13 +0300 |
commit | dc01dcaceedafbe7ea3a717be798c6dcade1cc78 (patch) | |
tree | e225b40eea2f9825f4a4570697addcc3a017e03b | |
parent | 441dd1eabbe566f313dd56e4eabd5829ec2985a6 (diff) |
Revert "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 c500765..c1a00bb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ define "content" }} <div class="post-list"> - {{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range $paginator.Pages }} {{ if .Draft }} {{ .Scratch.Set "draftPage" true }} |