diff options
-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> |