hexo-theme-fluid的使用

官方文档:https://fluid-dev.github.io/hexo-fluid-docs/start/

评论

这个功能需要配合一些第三方的api,因为是使用的github-page,所以就全套了,使用的是gitalk

gitalk是基于issue的,先建立一个存储库,我建的是一个新库,记得public

1
gitalk-comments

访问:https://github.com/settings/developers

自己在设置寻找比较麻烦,新建

img

xxxxx是你的github名字

image-20250326231945393

点击 Generate a new client secret生成

复制id,和生成的secret。

安装主体

1
npm i --save gitalk

修改配置文件,输入之前复制的id和secret

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
comments:
enable: true
type: gitalk

gitalk: #这部分在下面一点,不用直接复制
clientID:
clientSecret:
repo: github_name.github.io
owner: github_name
admin: github_name
language: zh-CN
labels: ['Gitalk']
perPage: 10
pagerDirection: last
distractionFreeMode: false
createIssueManually: true
1
hexo g && hexo d

还需要在文章页底部初始化Issue


hexo-theme-fluid的使用
https://rpniu.github.io/2025/03/26/hexo-theme-fluid的使用/
作者
rPniu
发布于
2025年3月26日
许可协议