From 774fa4efb13442a65d9c7bf890327776d33c2b0e Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Mon, 14 Jul 2025 16:36:48 +0200 Subject: [PATCH] feat: added active cards --- frontend/index.html | 6 +++++- internal/rendering/config.go | 31 ++++++++++++++++++++++------- internal/rendering/website_cards.go | 7 +++++++ 3 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 internal/rendering/website_cards.go diff --git a/frontend/index.html b/frontend/index.html index 8c0928b..f8a76a2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -15,7 +15,8 @@ - + + {{ if eq .ActiveCard "stores" }}
{{range $Store := .Stores }} @@ -23,7 +24,9 @@ {{- end }}
+ {{ end }} + {{ if eq .ActiveCard "listings" }}
{{range $Listing := .Listings }} @@ -32,6 +35,7 @@ {{- end }}
+ {{ end }}