Skip to content

Commit

Permalink
Merge pull request #81 from jvalecillos/patch/post-list-hugo-v0.57.0
Browse files Browse the repository at this point in the history
This should fix the issue with Hugo's breaking changes since v0.57 as mentioned in gohugoio/hugoThemes#678.
- adjusted post list for Hugo v0.57.0
Credits: @jvalecillos.
  • Loading branch information
htr3n committed Aug 19, 2019
2 parents 4e155a4 + 350fe18 commit 19b2178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 19b2178

Please sign in to comment.