Skip to content

Commit 986f5ca

Browse files
committed
add comment wiki
1 parent f8fa4ed commit 986f5ca

File tree

3 files changed

+49
-9
lines changed

3 files changed

+49
-9
lines changed

_Sidebar.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- [推送](https://github.com/firekylin/firekylin/wiki/推送)
2020
- [自定义](https://github.com/firekylin/firekylin/wiki/系统设置)
2121
- [系统设置](https://github.com/firekylin/firekylin/wiki/系统设置)
22+
- [添加评论](https://github.com/firekylin/firekylin/wiki/添加评论)
2223
- [主题外观](https://github.com/firekylin/firekylin/wiki/主题外观)
2324
- [主题列表](https://github.com/firekylin/firekylin/wiki/主题列表)
2425
- [主题开发](https://github.com/firekylin/firekylin/wiki/主题开发)

自定义/添加评论.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
Firekylin 使用第三方评论系统,默认自带了 Disqus,HyperComments,畅言和网易云跟帖评论系统的支持,你可以在“评论设置”中进行切换。选择对应的评论系统后,输入对应的网站ID即可。
3+
4+
除了以上之外,你也可以选择自定义来支持其他第三方评论系统。选择自定义后,你需要将对应的第三方评论系统的评论代码复制过来。
5+
6+
> ### 注意
7+
> 如若要迁移多说数据至其他服务,可参考:https://imnerd.org/firekylin-duoshuo-migration.html
8+
9+
## 如何集成 Gitalk 评论
10+
11+
Gitalk 是一款基于 Github Issue 的第三方评论系统,它的配置较其它自带评论支持稍微复杂一点。
12+
13+
### 配置前准备
14+
15+
- Github 账号
16+
- 创建 Repositorie 仓库用于评论系统
17+
- 评论内容会自动在仓库的Issue中生成
18+
- 创建 OAuth Apps [点击创建](https://github.com/settings/applications/new)
19+
简要说明创建OAuth需要填写的内容:
20+
- Application name:应用的名字随便起,我定义的是`blog`
21+
- Homepage URL:填写你的博客域名
22+
- Application description:可选描述,可留空。
23+
- Authorization callback URL:填写你的博客域名
24+
25+
创建完 OAuth Apps,就得到了 Client ID & Client Secret
26+
27+
28+
### FireKylin 后台配置
29+
30+
登录<kbd>博客后台</kbd>→<kbd>系统设置</kbd>→<kbd>评论设置</kbd>,评论类型选择`Gitalk`,评论代码写入配置模板内容,相关的信息请酌情自行修改。
31+
32+
配置模板
33+
```bash
34+
{
35+
"clientID": "your_id",
36+
"clientSecret": "your_secret",
37+
"repo": "your_repositorie_name",
38+
"owner": "your_github_username",
39+
"admin": [
40+
"your_github_username"
41+
],
42+
"distractionFreeMode": true,
43+
"githubUserName": "your_github_username",
44+
"githubPassWord": "your_github_password"
45+
}
46+
```
47+
48+
保存,打开任意文章可查看效果。

自定义/系统设置.md

-9
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ Firekylin 提供了丰富的设置,让用户可以尽情个性化自己的博
1414

1515
两步验证可以增强网站后台安全性,你可以在此开启。
1616

17-
## 评论设置
18-
19-
Firekylin 使用第三方评论系统,默认自带了 Disqus,多说(不建议使用),畅言和网易云跟帖评论系统的支持,你可以在“评论设置”中进行切换。选择对应的评论系统后,输入对应的网站ID即可。
20-
21-
除了 Disqus 和 多说 之外,你也可以选择自定义来支持其他第三方评论系统。选择自定义后,你需要将对应的第三方评论系统的评论代码复制过来。
22-
23-
> ### 注意
24-
> 如若要迁移多说数据至其他服务,可参考:https://imnerd.org/firekylin-duoshuo-migration.html
25-
2617
## 上传设置
2718

2819
Firekylin 支持上传到“本地”,“七牛”和“又拍”多种环境。默认上传到本地 `www/upload` 文件夹下。

0 commit comments

Comments
 (0)