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

github.com/jonathanjanssens/hugo-casper3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Janssens <jonathan.janssens@gmail.com>2019-11-19 11:34:57 +0300
committerJonathan Janssens <jonathan.janssens@gmail.com>2019-11-19 11:34:57 +0300
commit4ff23e32234b99b15ac8a691c7c25a27c05093ca (patch)
tree1fa1908efe22709c5dfe61b00d1f829babaf07a4
parente9320adb24567b51d32adcbe3dac898e3062033e (diff)
fix: use mainSections for homepage pages
-rw-r--r--layouts/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index c1c37c2..4228313 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -24,7 +24,8 @@
<main id="site-main" class="site-main outer">
<div class="inner posts">
<div class="post-feed">
- {{ range $index, $element := where $.Pages "Type" "post" }}
+ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
+ {{ range $index, $element := $pages }}
{{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}
{{ end }}
</div>