Revert "Adjusted post list for Hugo v0.57.0"
This commit is contained in:
parent
19b2178a41
commit
1f66b6a830
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
<div class="post-list">
|
<div class="post-list">
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
|
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ if .Draft }}
|
{{ if .Draft }}
|
||||||
{{ .Scratch.Set "draftPage" true }}
|
{{ .Scratch.Set "draftPage" true }}
|
||||||
|
|
Loading…
Reference in a new issue