diff options
author | jaseg <git@jaseg.de> | 2023-10-06 14:35:32 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-10-06 14:35:32 +0200 |
commit | 2fd22e30ce176d8d8a641fd371ad1623b082eaaf (patch) | |
tree | a041f0bba09b9a37650cae0ef3ae3b52c00d65c8 /themes/conspiracy/layouts/index.html | |
parent | 9afd55a603ddfabbfa79b66bbc8876d90cf9f5b8 (diff) | |
download | blog-2fd22e30ce176d8d8a641fd371ad1623b082eaaf.tar.gz blog-2fd22e30ce176d8d8a641fd371ad1623b082eaaf.tar.bz2 blog-2fd22e30ce176d8d8a641fd371ad1623b082eaaf.zip |
template: Make projects sort by date
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"> |