Skip to content
Permalink
Browse files

fix: use .Site.RegularPages

Hugo has breaking changes in v0.57.0.
ref. gohugoio/hugo#6153
  • Loading branch information...
zoncoen committed Sep 18, 2019
1 parent 76a6bef commit bf493d6f366cf4ab239685511a772d91e2caa038
Showing with 1 addition and 1 deletion.
  1. +1 −1 layouts/index.html
@@ -1,5 +1,5 @@
{{ partial "header.html" . }}
{{ range $index, $page := (.Paginate (where (where .Data.Pages "Type" "posts") ".Params.hidden" "!=" "true" )).Pages }}
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "posts") ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}

0 comments on commit bf493d6

Please sign in to comment.
You can’t perform that action at this time.