mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 08:43:40 +00:00
Disable theme toggle
This commit is contained in:
@@ -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 }}');
|
||||
|
Reference in New Issue
Block a user