fix/dark-mode-giscus

This commit is contained in:
tangly1024.com
2023-02-15 12:40:06 +08:00
parent a835c56fec
commit 91bf84287b
3 changed files with 6 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ export function GlobalContextProvider({ children }) {
const [lang, updateLang] = useState(BLOG.LANG)
const [locale, updateLocale] = useState(generateLocaleDict(BLOG.LANG))
const [theme, setTheme] = useState(BLOG.THEME)
const [isDarkMode, updateDarkMode] = useState(false)
const [isDarkMode, updateDarkMode] = useState(BLOG.APPEARANCE === 'dark')
const [onLoading, changeLoadingState] = useState(false)
useEffect(() => {