diff --git a/src/components/Button.astro b/src/components/Button.astro index 948977c..e9534a6 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -1,5 +1,5 @@ --- -import { moreLocales } from '@/config' +import { moreLocales, themeConfig } from '@/config' import { getNextGlobalLangPath, getNextSupportedLangPath } from '@/i18n/path' import { isPostPage, isTagPage } from '@/utils/page' @@ -7,6 +7,8 @@ interface Props { supportedLangs: string[] } +const { light: { background: lightMode }, dark: { background: darkMode } } = themeConfig.color + const { supportedLangs } = Astro.props const currentPath = Astro.url.pathname const isPost = isPostPage(currentPath) @@ -25,10 +27,10 @@ const nextUrl = useSupportedLangs ---