Skip to content

Commit

Permalink
Use .Site.RegularPages instead of .Data.Pages on Hugo 0.57+
Browse files Browse the repository at this point in the history
fixes #3
  • Loading branch information
Hidenori MATSUKI authored and Hidenori MATSUKI committed Aug 16, 2019
1 parent eef61f7 commit fdf9ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>{{ .Name }}'s articles</h2>
{{ end }}
{{ end }}

{{ $paginator := .Paginate ( where .Data.Pages "Section" "ne" "profiles" ) }}
{{ $paginator := .Paginate ( where .Site.RegularPages "Section" "ne" "profiles" ) }}
{{ range $idx, $page := $paginator.Pages }}
{{ if $page.Section }}
<article>
Expand Down

0 comments on commit fdf9ccb

Please sign in to comment.