summaryrefslogtreecommitdiff
path: root/layouts/_partials/header/other-navigation.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/header/other-navigation.html')
-rw-r--r--layouts/_partials/header/other-navigation.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/layouts/_partials/header/other-navigation.html b/layouts/_partials/header/other-navigation.html
index 662f1076..db37477d 100644
--- a/layouts/_partials/header/other-navigation.html
+++ b/layouts/_partials/header/other-navigation.html
@@ -1,6 +1,14 @@
{{ $langButtonSize := "w-4 h-4" }}
<div class="flex gap-2 pr-2">
+ <!-- theme switch -->
+ <select id="theme-select"
+ class="bg-neutral/10 border-1 border-[var(--text-color)] border-solid rd text-[var(--text-color)] font-serif text-size-[0.5rem] font-extrabold">
+ {{ $switches := slice "auto" "light" "dark" }}
+ {{ range $switches }}
+ <option value="{{ . }}">{{ T (printf "theme.%s" .) }}</option>
+ {{ end }}
+ </select>
<!-- language switch -->
{{- $lang := .Site.Language.Lang -}}
{{- $switch := dict
@@ -9,7 +17,7 @@
{{- $entry := index $switch $lang -}}
<a
href="{{ $entry.url }}"
- class="rounded-full text-center hover:no-underline {{ $langButtonSize }}
+ class="rd-full text-center hover:no-underline {{ $langButtonSize }}
bg-neutral/10 border-1 border-[var(--text-color)] border-solid
bg-[var(--block-background-color)]
flex items-center justify-center"