Ada2pro's blog

Waiting for love

0%

hexo-next博客评论系统搭建

综合调查后,对于next主题,gitalk是最简易部署且免费的评论系统。
大致流程如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
1.安装:
npm install hexo-helper-live2d gitalk --save #看板娘是可选的(hexo-helper-live2d)

2.配置文件
在/themes/next/_config.yml中
首先配置comment部分:
comments:
style: tabs
active: gitalk
storage: true
lazyload: true
nav:
giscus:
text: GitHub 评论
order: -1

然后按照网页:
https://ericasun.github.io/2024/03/15/hexo/2024/Hexo添加评论系统gitalk/
中的方法配置配置Gitalk,注意,在第二步时只是用方法1即可,且proxy:无需配置。