aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/assets/script.js
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2025-03-31 13:39:41 -0400
committerPaul Duncan <pabs@pablotron.org>2025-03-31 13:39:41 -0400
commit71221cf57376b957843ccd3039966428fbcb0d51 (patch)
treec358f73a66ea7cc0fdbb30ce27b8449787830c83 /themes/hugo-pt2021/assets/script.js
parent76467b8a2256b39e91b90552a37f6a7e0af6d1b1 (diff)
downloadpablotron.org-71221cf57376b957843ccd3039966428fbcb0d51.tar.xz
pablotron.org-71221cf57376b957843ccd3039966428fbcb0d51.zip
themes/hugo-pt2021: default to dark mode
Diffstat (limited to 'themes/hugo-pt2021/assets/script.js')
-rw-r--r--themes/hugo-pt2021/assets/script.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/themes/hugo-pt2021/assets/script.js b/themes/hugo-pt2021/assets/script.js
index ae47804..c1086cc 100644
--- a/themes/hugo-pt2021/assets/script.js
+++ b/themes/hugo-pt2021/assets/script.js
@@ -66,7 +66,6 @@ const D = document,
// the old logic also attempted to account for "prefers-color-scheme:
// light", but i want the default to be dark unless it is explicitly
// overridden.
-C.add('dark'); // unconditionally set dark mode
if (L && L.theme && L.theme === 'light') {
C.remove('dark'); // set light theme
}