fix: remove ClientRouter
This commit is contained in:
parent
fda8a2fcd1
commit
f708712a3b
1 changed files with 0 additions and 5 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
import "~/styles/globals.css"
|
import "~/styles/globals.css"
|
||||||
import { NoiseBackground } from "~/components/react/noise-background"
|
import { NoiseBackground } from "~/components/react/noise-background"
|
||||||
import { CodeBackground } from "~/components/react/code-background"
|
import { CodeBackground } from "~/components/react/code-background"
|
||||||
import { ClientRouter } from "astro:transitions"
|
|
||||||
import { getLangFromUrl } from "~/i18n/utils"
|
import { getLangFromUrl } from "~/i18n/utils"
|
||||||
import { en, zh } from "~/config"
|
import { en, zh } from "~/config"
|
||||||
|
|
||||||
|
|
@ -49,8 +48,6 @@ const config = lang === "zh" ? zh.meta : en.meta
|
||||||
<meta property="twitter:description" content={description} />
|
<meta property="twitter:description" content={description} />
|
||||||
<meta property="twitter:image" content={ogImageURL} />
|
<meta property="twitter:image" content={ogImageURL} />
|
||||||
|
|
||||||
<ClientRouter fallback="swap" />
|
|
||||||
|
|
||||||
<script is:inline>
|
<script is:inline>
|
||||||
const setTheme = () => {
|
const setTheme = () => {
|
||||||
const theme =
|
const theme =
|
||||||
|
|
@ -61,8 +58,6 @@ const config = lang === "zh" ? zh.meta : en.meta
|
||||||
|
|
||||||
if (theme === "dark") {
|
if (theme === "dark") {
|
||||||
document.documentElement.classList.add("dark")
|
document.documentElement.classList.add("dark")
|
||||||
} else {
|
|
||||||
document.documentElement.classList.remove("dark")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue