From 3ff8e8cb966186e435c5b7c79e7d39c70a62508d Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Thu, 29 Dec 2022 13:19:08 -0500 Subject: [PATCH] refactor: move theme switcher to a partial --- templates/home.html | 7 +------ templates/question.html | 7 +------ templates/themeSwitcher.html | 6 ++++++ 3 files changed, 8 insertions(+), 12 deletions(-) create mode 100644 templates/themeSwitcher.html diff --git a/templates/home.html b/templates/home.html index fefc423..3bced95 100644 --- a/templates/home.html +++ b/templates/home.html @@ -53,12 +53,7 @@ Toggle theme -
- - Toggle theme - -
+ {{ template "themeSwitcher.html" .}}
- - Toggle theme - -
+ {{ template "themeSwitcher.html" .}}
diff --git a/templates/themeSwitcher.html b/templates/themeSwitcher.html new file mode 100644 index 0000000..a34b512 --- /dev/null +++ b/templates/themeSwitcher.html @@ -0,0 +1,6 @@ +