Skip to content

Commit

Permalink
Fix paginator with hugo 0.57.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed Aug 14, 2019
1 parent 8320f7c commit 0d64b46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ params:
Creative Commons Attribution 4.0 International License</a>.
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
mainSections: posts # Main content folder
utterances:
enable: false
repo:
Expand Down
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ params:
Creative Commons Attribution 4.0 International License</a>.
rss: To subscribe to this RSS feed, copy its address and paste it into your
favorite feed reader.
mainSections: posts # Main content folder
utterances:
enabled: false
repo:
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "preload" }}

{{ $paginator := where .Pages "Type" "in" site.Params.mainSections | .Paginate }}
{{ $paginator := where site.RegularPages "Type" "in" site.Params.mainSections | .Paginate }}
{{ range $paginator.Pages }}
{{ with .Content }}{{ end }}
{{ with .Scratch.Get "css" }}
Expand Down

0 comments on commit 0d64b46

Please # to comment.