diff options
Diffstat (limited to 'themes/conspiracy/layouts/index.html')
-rw-r--r-- | themes/conspiracy/layouts/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html index ab68f27..808ddc8 100644 --- a/themes/conspiracy/layouts/index.html +++ b/themes/conspiracy/layouts/index.html @@ -9,10 +9,10 @@ </div> {{- end }} - {{- range site.Params.homepage_categories }} + {{- range $config := site.Params.homepage_categories }} <h2>{{ .title }}</h2> - {{- range first .count (where site.RegularPages "Section" "==" .key) }} - {{ partial "card.html" . }} + {{- range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }} + {{ partial "card.html" $entry }} {{- end }} <div class="pagination-links"> |