Comments (12)
请检查一下「Disqus 代码 URL」这一项设置有没有保存(保存后在 gridea/config/theme.inlineamp.config.json 文件里面能找到 disqusurl )
from gridea-theme-inlineamp.
有保存
from gridea-theme-inlineamp.
在预览的时候就显示的博客链接
from gridea-theme-inlineamp.
我好像知道你的问题了,你需要前往 Disqus 管理后台的设置里面,点击 Advanced,在 Trusted Domains 那里添加你的域名。
我使用 1.2.0 版本并没有复现这个 bug,Gridea 的其他主题也有过设置无法生效的问题,如果上述方法无法解决,建议删除主题后重新安装。
正常情况应该能在 theme.inlineamp.config.json 文件里面找到这个
from gridea-theme-inlineamp.
好像还是不行,我重装一下再试试
from gridea-theme-inlineamp.
需要对gridea本身的评论配置进行修改吗
from gridea-theme-inlineamp.
Gridea 本身的评论配置里只需要平台选择 Disqus,并打开显示评论的开关就可以了
from gridea-theme-inlineamp.
下面api、shortname都不需要吗
from gridea-theme-inlineamp.
from gridea-theme-inlineamp.
Gridea 自带的评论配置中平台选择 Disqus,打开显示评论,在主题的自定义配置里填好 Disqus 代码 URL 和 Disqus 子域就可以了。
如果不行的话,将 disqus.ejs 文件中的 <%= site.customConfig.disqus %> 替换为你 disqus 代码 的 URL。
from gridea-theme-inlineamp.
建议使用 1.2.1 版本,并更新你的 HTML 文件代码:https://gist.github.com/jiansing/b95828a1d288965f3d3d6ba7cd260bc1
from gridea-theme-inlineamp.
能用了,感谢
from gridea-theme-inlineamp.
Related Issues (9)
- 分类目录出错 HOT 4
- 公共顶部背景无法自定义
- 文章封面的时间显示错误 HOT 1
- “当前主题暂无自定义配置” HOT 2
- 望添加代码高亮和Tab宽度改为4格 HOT 1
- 设置多个标签,只会显示一个
- 所有页面都显示同一个 Disqus 评论区 HOT 1
- 导入主题以后只显示一张很大的图片,求解? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridea-theme-inlineamp.