diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-14 21:19:10 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-14 21:19:10 +0300 |
commit | 90bb2901736d74588040b5dea40730500a7fd23a (patch) | |
tree | fb01a5e2e02c34a8179f9c02f09c716349993420 | |
parent | bd911331e07ba6174392830e20cfb5ed06912229 (diff) | |
parent | 5a5ee8a79fb414e1ee4bf4b69aeee54ce1b68254 (diff) |
Merge branch 'master' of https://github.com/de-souza/hugo-flex
-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 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" }} |