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 21:19:10 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2019-08-14 21:19:10 +0300
commit90bb2901736d74588040b5dea40730500a7fd23a (patch)
treefb01a5e2e02c34a8179f9c02f09c716349993420
parentbd911331e07ba6174392830e20cfb5ed06912229 (diff)
parent5a5ee8a79fb414e1ee4bf4b69aeee54ce1b68254 (diff)
Merge branch 'master' of https://github.com/de-souza/hugo-flex
-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 d707cd0..42eb7ee 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 871802b..f8397df 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" }}