mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 03:32:51 +02:00
fix: theme toggle error
This commit is contained in:
parent
419b8b5611
commit
c1017156da
1 changed files with 1 additions and 2 deletions
|
@ -16,12 +16,11 @@ interface Props {
|
||||||
const { postTitle, postDescription, postImage } = Astro.props
|
const { postTitle, postDescription, postImage } = Astro.props
|
||||||
|
|
||||||
const fontStyle = `font-${themeConfig.global.font}`
|
const fontStyle = `font-${themeConfig.global.font}`
|
||||||
const colorMode = themeConfig.color.mode
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<html
|
<html
|
||||||
lang={Astro.currentLocale || 'en-US'}
|
lang={Astro.currentLocale || 'en-US'}
|
||||||
class:list={[fontStyle, colorMode]}
|
class:list={[fontStyle]}
|
||||||
data-overlayscrollbars-initialize
|
data-overlayscrollbars-initialize
|
||||||
>
|
>
|
||||||
<Head {postTitle} {postDescription} {postImage} />
|
<Head {postTitle} {postDescription} {postImage} />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue