hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
646 stars 96 forks source link

[BUG] giscus theme is different from FixIt theme when initialize #453

Closed Bendancom closed 2 months ago

Bendancom commented 2 months ago

giscus 初始化时因未修改其中 <script> 元素中的 data-theme 属性,导致其仍为默认的 preferred_color_scheme,会被自动推导至 dark 主题。 the attribute:data-theme in the <script> element isn't modified when the giscus initialize,which leads to the content of data-theme is also in default which is preferred_color_scheme and it automatically infer to dark theme.

vercel[bot] commented 2 months ago

@Bendancom is attempting to deploy a commit to the FixIt Team on Vercel.

A member of the Team first needs to authorize it.

Lruihao commented 2 months ago

暂时无法复现,网络不太好的时候是无法切换的。