Skip to content

Commit

Permalink
Merge pull request htr3n#81 from jvalecillos/patch/post-list-hugo-v0.…
Browse files Browse the repository at this point in the history
…57.0

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 authored Aug 19, 2019
2 parents 9f041bd + 084d99a commit 352c29b
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 352c29b

Please sign in to comment.