Closed rickeygong closed 14 hours ago
看了其他博主的博客在中文模式下显示正常,控制台看了页面的JS,对比发现渲染出来的js语言标识不对,
应该是 zh-CN , 而不是 zh-cn。于是调整了Blog\themes\hugo-theme-stack\layouts\partials\comments\provider
下的giscus.html
data-lang="{{- default (default `en` $.Language.LanguageCode) .lang -}}"
data-lang="{{ if eq $.Site.Language.Lang `zh-cn` }}zh-CN{{ else }}{{ default `en` $.Site.Language.Lang }}{{ end }}"
What happened?
问题描述
giscus在中文下不显示,并提示:”giscus.app 已拒绝连接“
Hugo env
我的
hugo.yaml
截图
zh-cn
en
Hugo version
0.138.0
Theme version
hugo-theme-stack-3.29.0
What browsers are you seeing the problem on?
Microsoft Edge
More information about the browser
版本 130.0.2849.80 (正式版本)
Relevant log output
Link to Minimal Reproducible Example
https://github.com/rickeygong/Gdh_Hugo_Blog