diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-14 20:45:40 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-14 20:45:40 +0300 |
commit | 0d64b46ac5c0a01ed17f8da55ffcc43d99b6016f (patch) | |
tree | b000928c783758109dff238c65bf90e2a33ce9bd | |
parent | 8320f7cbc02fb058f98d3ba4c7f0bb2258a856fe (diff) |
Fix paginator with hugo 0.57.0
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | config.yaml | 1 | ||||
-rw-r--r-- | layouts/index.html | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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: diff --git a/config.yaml b/config.yaml index 388a392..1955fcc 100644 --- a/config.yaml +++ b/config.yaml @@ -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: diff --git a/layouts/index.html b/layouts/index.html index ccf4deb..badc0d3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -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" }} |