Disable theme toggle

This commit is contained in:
Dave Gallant
2024-04-06 22:48:13 -04:00
parent 1aeb6d20b6
commit 391d164ae9
3 changed files with 3 additions and 59 deletions

View File

@@ -6,18 +6,7 @@
<script>
// load comments
var getTheme = localStorage && localStorage.getItem("theme");
getTheme =
getTheme == null
? window.matchMedia &&
window.matchMedia("(prefers-color-scheme: light)").matches
? "light"
: "dark"
: getTheme;
getTheme = getTheme == null ? "dark" : getTheme;
let theme = getTheme === "dark" ? "gruvbox-dark" : "github-light";
let theme = "dark-blue";
let script = document.createElement("script");
script.src = "https://utteranc.es/client.js";
script.setAttribute("repo", '{{ print $username "/" $repository }}');