最近修改个人博客评论系统,集成Gittalk,但加载Gittalk插件之后出现Error not found的情况,特此记录下解决过程:
1.在Github上面新建一个评论仓库
2.在该评论仓库中的settings设置开启issue评论
3.第三步,初始化 issues。点击issues栏,点击create an issue
4.设置GitHub Apps 的 OAuth Apps 配置项
在GitHub上注册新应用,链接:https://github.com/settings/applications/new
解释一下:
1)Application name 可以随便填一个。
2)Homepage URL 必须是博客仓库的域名(GitHub Pages 的)。
3)Authorization callback URL 必须是博客的域名(http://zyjbml.cn)
5.博客主题_config.xml配置:
gitalk:
enable: true
owner: #Github登录名
repo: #创建的评论仓库名,例如:blog-comments
oauth:
clientId: #OAuth Apps的ClientID
clientSecret: #OAuth Apps的Client Secret
admin: #Github账号名称