-
Notifications
You must be signed in to change notification settings - Fork 92
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
对于评论系统的疑惑? #16
Comments
其实这个你稍微看下gitment的代码和github Issues API就明白的。。, 把那个gitment Class和utils.js封装的请求api.github.com的http对象大概看一遍就懂了,初始化评论实际上就是在目标repo创建一个issue来存储对应文章的评论 |
@pheromone 可能是你的config.yml的配置repo填写了整个的地址,填一下repo的名称 |
如果不想改标题的话,你可以尝试用文章的发表时间戳作为gitment的id, 在
然后在
|
@pheromone 我更新了代码,你试着拉下来后重新部署上去,试试能不能初始化评论 |
谢谢 |
@pheromone 你那条评论是在哪里评论的? 存储评论的repo是这个对吧?https://github.com/pheromone/comments/issues, 我看了下issue, label应该是时间戳才对, 我看了下你的博客仓库的js并没有更新https://github.com/pheromone/pheromone.github.io/blob/master/js/comment/gitment.js 更新的主题的 空白文章这个,你看一下leancloud的Counter里面那篇空白文章对应的url是什么,可能是bug :( |
@pheromone |
博客仓库还是pheromone.github.io这个吧? 我看了跟我主题的代码还是不一样, 没有带idhttps://github.com/pheromone/pheromone.github.io/blob/master/js/comment/gitment.js#L302, 试试 |
非常感谢.终于搞定了.希望博客继续优化.祝君生活愉快. |
我按照你的说明,注册了Gitment账号,也按照你的说明文档填好了各项参数,但是对于一开始的https://imsun.net/posts/gitment-introduction/ 里面说的2.引入 Gitment 3. 初始化评论评论看不懂.
The text was updated successfully, but these errors were encountered: