From eca001e57f444372589d35196dab29ab22f09afb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 7 Aug 2024 16:59:51 +0200 Subject: Set a theme cookie --- templates/navbar.templ | 3 +-- templates/root.templ | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/navbar.templ b/templates/navbar.templ index 5007183..f0d654c 100644 --- a/templates/navbar.templ +++ b/templates/navbar.templ @@ -77,8 +77,7 @@ templ navbar() { fill="none" xmlns="http://www.w3.org/2000/svg" > - - if true { + if ctx.Value("theme").(string) == "dark" { - + -- cgit v1.2.3