hexo添加评论功能

1.新建一个空白的公开仓库

2.登录github,点击https://github.com/apps/utterances,单击 Install 按钮,选择刚才新建的空白仓库

3.运行命令

1
2
3
cd <your-blog>
npm install hexo-theme-next
cp node_modules/hexo-theme-next/_config.yml _config.next.yml

来源1

4.更改语言和主题在_config.yml中

1
2
theme: next
language: zh-CN

5.更改_config.next.yml
活动的评论插件改为utterances,并启用utterances的enable

1
2
3
4
5
6
7
8
comments:
# Choose a comment system to be displayed by default.
# Available values: disqus | disqusjs | changyan | livere | gitalk | utterances
active: utterances
***
***
utterances:
enable: true

来源2

6.注意需要能够正常访问github,而且加载评论会延迟几秒