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

disqus代码URL无法更新 #6

Closed
Tony1026 opened this issue Apr 22, 2020 · 12 comments
Closed

disqus代码URL无法更新 #6

Tony1026 opened this issue Apr 22, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@Tony1026
Copy link

在gitee page上传了页面,也更新了代码,但是页面上显示的链接是博客页面本身的链接

@jiansing jiansing added the bug Something isn't working label Apr 23, 2020
@jiansing
Copy link
Owner

请检查一下「Disqus 代码 URL」这一项设置有没有保存(保存后在 gridea/config/theme.inlineamp.config.json 文件里面能找到 disqusurl )

@Tony1026
Copy link
Author

有保存

@Tony1026
Copy link
Author

在预览的时候就显示的博客链接

@jiansing
Copy link
Owner

我好像知道你的问题了,你需要前往 Disqus 管理后台的设置里面,点击 Advanced,在 Trusted Domains 那里添加你的域名。
我使用 1.2.0 版本并没有复现这个 bug,Gridea 的其他主题也有过设置无法生效的问题,如果上述方法无法解决,建议删除主题后重新安装。
正常情况应该能在 theme.inlineamp.config.json 文件里面找到这个
452HZ51krE

@Tony1026
Copy link
Author

好像还是不行,我重装一下再试试

@Tony1026
Copy link
Author

需要对gridea本身的评论配置进行修改吗

@jiansing
Copy link
Owner

Gridea 本身的评论配置里只需要平台选择 Disqus,并打开显示评论的开关就可以了

@Tony1026
Copy link
Author

下面api、shortname都不需要吗

@Tony1026
Copy link
Author

Tony1026 commented Apr 23, 2020 via email

@jiansing
Copy link
Owner

Gridea 自带的评论配置中平台选择 Disqus,打开显示评论,在主题的自定义配置里填好 Disqus 代码 URL 和 Disqus 子域就可以了。
如果不行的话,将 disqus.ejs 文件中的 <%= site.customConfig.disqus %> 替换为你 disqus 代码 的 URL。

@jiansing
Copy link
Owner

建议使用 1.2.1 版本,并更新你的 HTML 文件代码:https://gist.github.com/jiansing/b95828a1d288965f3d3d6ba7cd260bc1

@Tony1026
Copy link
Author

能用了,感谢

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