From 9e2e844e8f926dae54b814c2a88b5af8be9c40c9 Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 25 May 2025 17:39:51 +0200 Subject: [PATCH] Update homepage to show all cards initially with All tab --- layouts/_default/index.html | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index a37ff6f..ce60f94 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -6,24 +6,43 @@ {{ end }}
- {{ $current := "Books" }} - {{ range where .Site.RegularPages ".Params.category" $current }} - {{ partial "card.html" . }} + {{ range .Site.RegularPages }} + {{ if .Params.category }} + {{ partial "card.html" . }} + {{ end }} {{ end }}