fix: theme toggle error

This commit is contained in:
radishzzz 2025-01-23 10:25:16 +00:00
parent 419b8b5611
commit c1017156da

View file

@ -16,12 +16,11 @@ interface Props {
const { postTitle, postDescription, postImage } = Astro.props
const fontStyle = `font-${themeConfig.global.font}`
const colorMode = themeConfig.color.mode
---
<html
lang={Astro.currentLocale || 'en-US'}
class:list={[fontStyle, colorMode]}
class:list={[fontStyle]}
data-overlayscrollbars-initialize
>
<Head {postTitle} {postDescription} {postImage} />