Revert "Adjusted post list for Hugo v0.57.0" (#82)

Revert "Adjusted post list for Hugo v0.57.0"
This commit is contained in:
Huy Tran 2019-08-19 10:55:53 +10:00 committed by GitHub
commit 441dd1eabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}