Adjusted post list for Hugo v0.57.0

This commit is contained in:
Jose Valecillos 2019-08-16 17:32:03 +02:00
parent 4e155a4bf1
commit 1c50bcc7ec

View file

@ -4,7 +4,7 @@
{{ define "content" }} {{ define "content" }}
<div class="post-list"> <div class="post-list">
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }} {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
{{ if .Draft }} {{ if .Draft }}
{{ .Scratch.Set "draftPage" true }} {{ .Scratch.Set "draftPage" true }}