From 10265692a126b9d52ce5a542cb7d30382a91a1d7 Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 25 May 2025 20:47:34 +0200 Subject: [PATCH] feat: implement tabbed category navigation with card layout for content browsing --- layouts/_default/list.html | 91 +++++++++++++++++++++++++++----------- 1 file changed, 66 insertions(+), 25 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 52f19c0..1a1663a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,22 +5,44 @@
{{ $cat }}
{{ end }} -
- {{ $currentCat := .Title }} - {{ range .Site.RegularPages }} - {{ if and (.Params.category) (or (eq $currentCat "All") (eq .Params.category $currentCat)) }} - {{ partial "card.html" . }} - {{ end }} + +
+ {{ range $cat := slice "Books" "Movies" "TV Series" "Recipes" "YouTube" "Music" "Concerts" }} +
+ {{ range where $.Site.RegularPages "Params.category" $cat }} + {{ if not (eq .Params.draft true) }} + {{ partial "card.html" . }} + {{ end }} + {{ end }} +
{{ end }} -
- {{ end }}