From 2fd22e30ce176d8d8a641fd371ad1623b082eaaf Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 6 Oct 2023 14:35:32 +0200 Subject: template: Make projects sort by date --- themes/conspiracy/layouts/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'themes/conspiracy/layouts/index.html') 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 @@ {{- end }} - {{- range site.Params.homepage_categories }} + {{- range $config := site.Params.homepage_categories }}

{{ .title }}

- {{- 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 }}