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

修改repo后,每页的评论都一样 #24

Closed
javahuang opened this issue May 27, 2017 · 1 comment
Closed

修改repo后,每页的评论都一样 #24

javahuang opened this issue May 27, 2017 · 1 comment

Comments

@javahuang
Copy link

您好,之前按照您的教程配置评论是正常的,后来我修改了一下 repo,第一篇博客初始化正常,但打开其他的博客都没有提示需要初始化,并且内容和第一篇博客是一样的,地址: http://hrps.me/2017/05/22/http-request-payload-vs-form-data/

@imsun
Copy link
Owner

imsun commented Jun 2, 2017

你忘记设置 id 了。评论是与 id 对应的。在 hexo 里可以把 id 设成文章 id。

下面是你的代码:

var gitment = new Gitment({
  id: '页面 ID', // 可选。默认为 location.href
  owner: 'javahuang',
  repo: 'javahuang.github.io',
  oauth: {
    client_id: 'd74bfd49f14fba220dba',
    client_secret: '1b82b1520f36da3754a52713bd72f661c8c8e006',
  },
})
gitment.render('container')

@imsun imsun closed this as completed Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants