Skip to content

Commit ccae33f

Browse files
Force dark theme
1 parent 7290c1d commit ccae33f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

layouts/index.html

+1-8
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,7 @@
1818
<!--================= add analytics if enabled =========================-->
1919
{{- partial "analytics.html" . -}}
2020
<script>
21-
theme = localStorage.getItem('theme-scheme') || localStorage.getItem('darkmode:color-scheme') || 'light';
22-
if (theme == 'system') {
23-
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
24-
theme = 'dark';
25-
} else {
26-
theme = 'light';
27-
}
28-
}
21+
theme = 'dark';
2922
document.documentElement.setAttribute('data-theme', theme);
3023
</script>
3124
</head>

0 commit comments

Comments
 (0)