🐛 Stop site appearance taking priority over user

Fixes #102
This commit is contained in:
James Panther
2022-02-05 19:19:47 +11:00
parent 91b5b52c21
commit 09d2e410c8
3 changed files with 24 additions and 15 deletions
+2 -3
View File
@@ -8,9 +8,8 @@
{{- else -}}
ltr
{{- end }}"
class="scroll-smooth {{ if eq (.Site.Params.defaultAppearance | default "light") "dark" -}}
dark
{{- end }}"
class="scroll-smooth"
data-default-appearance="{{ .Site.Params.defaultAppearance | default "light" }}"
data-auto-appearance="{{ .Site.Params.autoSwitchAppearance | default "true" }}"
>
{{- partial "head.html" . -}}