From 8cff71e0ceb5e6ae59498cb9b257bb8ab28a9b17 Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 25 May 2025 20:43:09 +0200 Subject: [PATCH] feat: add list template with category tabs and card filtering --- layouts/_default/list.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f17208e..52f19c0 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,8 +6,9 @@ {{ end }}
- {{ range .Pages }} - {{ if .Params.category }} + {{ $currentCat := .Title }} + {{ range .Site.RegularPages }} + {{ if and (.Params.category) (or (eq $currentCat "All") (eq .Params.category $currentCat)) }} {{ partial "card.html" . }} {{ end }} {{ end }}