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

giscus 在深色模式配置下没有默认为深色模式 #119

Open
4 tasks done
myeeye opened this issue Sep 21, 2023 · 3 comments
Open
4 tasks done

giscus 在深色模式配置下没有默认为深色模式 #119

myeeye opened this issue Sep 21, 2023 · 3 comments
Labels
invalid This doesn't seem right

Comments

@myeeye
Copy link

myeeye commented Sep 21, 2023

请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
(Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate.)

问题自检列表 (Issue Checklist)

请确认如下情况已检查,并将 [ ] 换成 [x] 来选择 (Change [ ] to [x] to selected which your could make sure)

  • 已使用 Hugo Extended 0.86.0 或更高的版本 (I'm using Hugo Extended version 0.86.0 or later)
  • 已使用 Hugo NexT 4.0 或更高的版本 (I'm using Hugo NexT version 4.0 or later)
  • 已阅读 Hugo 故障排除并尝试修复无果 (I had already read the Troubleshooting page of Hugo)
  • 已搜索过当前所有已知问题讨论区 ,但没有找到帮助 (I had already searched for current Issues and Q & A, which does not help me.)

预期行为 (Expected behavior)

请描述你想实现的预期效果 (Please describe the expected behavior what you want)

giscus 在全局默认为深色模式的情况下默认以深色模式出现。

实际行为 (Actual behavior)

请同时提供网站链接、屏幕截图和源码地址 (Please provide your site links, screenshots and code repository)

无论初始 darkmode 设置为何者,giscus 评论均默认以浅色模式出现;仅当手动点击“深浅模式切换”的按钮后 giscus 才会切换浅色 / 深色模式。

问题重现步骤 (Steps to reproduce the behavior)

打开 https://hugo-next.github.io/hugo-next-v4-introduced.html 页面,进入评论区,切换为 giscus,可以观察到 giscus 以浅色模式呈现。

image

连续点击两次“深浅模式切换”的按钮后,giscus 以深色模式呈现。

image

环境信息 (Environment Information)

主题配置(Configuration)

提供主题 config.yaml 中修改过的部分内容 (Paste ONLY CHANGED CONFIGURATION from config.yaml)

darkmode: true

其他有用信息 (Other Information)

例如:操作系统、浏览器等 (e.g. Browser, System)

Edge浏览器,Windows11。

@myeeye myeeye added the bug Something isn't working label Sep 21, 2023
@elkan1788
Copy link
Contributor

有点奇怪,在我的电脑上没有复现出这个问题,不知是否和网络环境有关系,待跟进看看。

@xgnw
Copy link

xgnw commented Oct 18, 2023

Edge浏览器,Windows10
也出现这种问题

@elkan1788 elkan1788 added invalid This doesn't seem right and removed bug Something isn't working labels Oct 19, 2023
@elkan1788
Copy link
Contributor

@myeeye @xgnw 建议还是检查一下你们的网络情况,示例站点是用vercel部署,估计国外服务器响应慢的原因,我用VPN连接过去访问(Windows10 Edge)是正常的,可以看下的gif录屏动画。
giscus深色显示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants