Skip to content

Commit bf493d6

Browse files
committed
fix: use .Site.RegularPages
Hugo has breaking changes in v0.57.0. ref. gohugoio/hugo#6153
1 parent 76a6bef commit bf493d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ partial "header.html" . }}
2-
{{ range $index, $page := (.Paginate (where (where .Data.Pages "Type" "posts") ".Params.hidden" "!=" "true" )).Pages }}
2+
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "posts") ".Params.hidden" "!=" "true" )).Pages }}
33
{{ if ne $index 0 }}
44
{{ end }}
55
{{ .Render "li" }}

0 commit comments

Comments
 (0)