Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] hugo giscus 评论区无法自动切换夜间模式 #870

Open
hzp2333 opened this issue Mar 21, 2024 · 1 comment
Open

[BUG] hugo giscus 评论区无法自动切换夜间模式 #870

hzp2333 opened this issue Mar 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hzp2333
Copy link

hzp2333 commented Mar 21, 2024

Describe the bug 描述你遇到的错误

使用的giscus评论区,但是切换到夜间模式时,评论区没有自动切换。

Expected behavior 期待的行为

请问可能是哪个模块出问题呢?

Screenshots 屏幕截图

8e3ebce3d24162b97ea4d5e985da55b

Build Environment 构建环境

使用的多语言博客,
config.toml设置如下,直接在结尾加上的这部分。

[params.page.comment]
      enable = true       
[params.page.comment.giscus]   
  enable = true   
  repo = "hzp2333/Giscus"   
  repoId = "###########"   
  category = "Announcements"   
  categoryId = "###########"   
  lang = ""   
  mapping = "pathname"   
  reactionsEnabled = "1"   
  emitMetadata = "0"   
  inputPosition = "bottom"   
  lazyLoading = false
  darkTheme = "dark"
  lightTheme = "light"

Preview Environment 预览环境

No response

Additional Information 补充信息

当我把config.toml更换为

 darkTheme = "dark"
  lightTheme = "dark"

时,博客无论白天还是夜间模式,评论区都是深色模式。
感觉是识别深色模型的部分出问题了?
网站:https://blog.huaxiangshan.com/
感谢回复

@hzp2333 hzp2333 added the bug Something isn't working label Mar 21, 2024
@danish-mehmood
Copy link

@hzp2333 in https://giscus.app/ you would need to set the "preffered color scheme" in theme section dropdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants