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. 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. 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" }}