diff options
author | Jonathan Janssens <jonathan.janssens@gmail.com> | 2019-11-19 11:34:57 +0300 |
---|---|---|
committer | Jonathan Janssens <jonathan.janssens@gmail.com> | 2019-11-19 11:34:57 +0300 |
commit | 4ff23e32234b99b15ac8a691c7c25a27c05093ca (patch) | |
tree | 1fa1908efe22709c5dfe61b00d1f829babaf07a4 | |
parent | e9320adb24567b51d32adcbe3dac898e3062033e (diff) |
fix: use mainSections for homepage pages
-rw-r--r-- | layouts/index.html | 3 |
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> |