diff options
author | Angelo Stavrow <contact@angelostavrow.com> | 2019-09-30 15:42:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 15:42:31 +0300 |
commit | 37480f2d205f0944b2b5fa2b8f7a3344f4f78116 (patch) | |
tree | a5dd6aa87a071f6e86b37b129c364aba91db79ea /layouts | |
parent | 6b3f07ce9591e8304f1669e5fa87703d16bbdabc (diff) | |
parent | 7344b8cb26a143a39127262ff60fbfde96e56186 (diff) |
Merge pull request #62 from AngeloStavrow/56_add-mainSections-to-config
Add mainSections parameter to configuration
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4af97c7..c975ac5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ partial "header.html" . }} <h2>{{ .Title }}</h2> <div id="content"> -{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "post")).Pages }} +{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)).Pages }} {{ if ne $index 0 }} {{ end }} {{ .Render "li" }} diff --git a/layouts/index.html b/layouts/index.html index 4e973ac..3b02c07 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@ <!-- Content goes here --> <div id="content"> -{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }} +{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} {{ if ne $index 0 }} {{ end }} {{ .Render "li" }} |