feat: add list template with category tabs and card filtering

This commit is contained in:
Greg 2025-05-25 20:43:09 +02:00
parent a893137976
commit 8cff71e0ce

View File

@ -6,8 +6,9 @@
{{ end }} {{ end }}
</div> </div>
<div class="cards" id="cards"> <div class="cards" id="cards">
{{ range .Pages }} {{ $currentCat := .Title }}
{{ if .Params.category }} {{ range .Site.RegularPages }}
{{ if and (.Params.category) (or (eq $currentCat "All") (eq .Params.category $currentCat)) }}
{{ partial "card.html" . }} {{ partial "card.html" . }}
{{ end }} {{ end }}
{{ end }} {{ end }}