超简单在Nobelium添加Gitalk评论系统
date
Apr 9, 2021
slug
gitalkinnob
status
Published
tags
nobelium
gitalk
notion
summary
超简单!超简单!超简单!因为作者已经提前在博客系统里帮我们安装好了Gitalk,所以我们需要做的就是补充
blog.config.js
文件里这些数据就可以了!type
Post
超简单在Nobelium添加Gitalk评论系统
超简单!超简单!超简单!
因为作者已经提前在博客系统里帮我们安装好了Gitalk,所以我们需要做的就是
补充
blog.config.js
文件里这些数据就可以了!![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617937851381.jpg?table=block&id=8d4af824-2211-422e-a53a-b65e604dce23&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617943064786.png?table=block&id=780ab702-cd30-4a52-a3af-50ae08578f93&cache=v2)
上图的数据如何获得呢?
- 创建一个公共github仓库,记住这个仓库名,我的是
nob
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617941453567.png?table=block&id=af565de1-dffa-4ba4-8b27-985e075108ce&cache=v2)
- 创建一个GitHub Application,请点击这里,生成
client id
和client secret
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617949445676.png?table=block&id=00d251fd-92e4-4fa8-af17-e872515ce83f&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617942344470.png?table=block&id=e3b235f6-3c4b-4ae1-92ea-749b97ac4eb2&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617942583213.png?table=block&id=78d24ad3-8d59-44a7-bab1-0f9e8fc6dc11&cache=v2)
- 返回你的nobelium的仓库将
blog.config.js
补充好 一定记得repo
那里不要多写,不要傻乎乎把整个仓库地址都填进去
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617943064786.png?table=block&id=f4b11477-d5f6-4dc4-abb1-0062007c2a70&cache=v2)
配置完毕
刷新你的主页,查看评论是否配置成功。有时会出现下图
![notion image](https://www.notion.so/image/https%3A%2F%2Fi0.wp.com%2Fraw.githubusercontent.com%2Fbieb13%2Fbieb13.github.io%2Fmaster%2Fpost-images%2F1617943305806.png?table=block&id=553df2bd-8379-46ab-b234-50c140b7f357&cache=v2)
我也不知道这是啥bug,我是登录了一下自己的GitHub后就变正常了。
对了你的网页地址不要设置过长,不然也会出现bug.
现在咱也是博客有评论系统的人了~撒花💐🌺
转载请附带原文链接,谢谢!