Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2019-08-14 20:45:40 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2019-08-14 20:45:40 +0300
commit0d64b46ac5c0a01ed17f8da55ffcc43d99b6016f (patch)
treeb000928c783758109dff238c65bf90e2a33ce9bd
parent8320f7cbc02fb058f98d3ba4c7f0bb2258a856fe (diff)
Fix paginator with hugo 0.57.0
-rw-r--r--README.md1
-rw-r--r--config.yaml1
-rw-r--r--layouts/index.html2
3 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index bb0e62f..894f58a 100644
--- a/README.md
+++ b/README.md
@@ -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" }}