🎨 增加 Go 后端
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@@ -0,0 +1,15 @@
|
||||
let theme = localStorage.getItem("nuxt-color-mode");
|
||||
|
||||
function setTheme(theme) {
|
||||
if (theme === "system" || !theme) {
|
||||
theme =
|
||||
window.matchMedia &&
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
? "dark"
|
||||
: "light";
|
||||
}
|
||||
document.querySelector("html").classList.add(theme);
|
||||
document.documentElement.setAttribute("class", theme);
|
||||
}
|
||||
|
||||
setTheme(theme);
|
||||
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 490 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 669 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 516 B |
|
After Width: | Height: | Size: 2.5 KiB |