引言
之前使用Valine
,但是一直苦于别人评论我并不能第一时间知道,便倒腾了一个早上的Valine
邮件提醒功能。但但但但是,免费版的Valine
会强制休眠,我便另寻他道。
Gitalk
项目主页:https://github.com/gitalk/gitalk
引用:
Gitalk is a modern comment component based on GitHub Issue and Preact.
Hexo & Next 适配
打开themes/next/_config.yml
,找到Gitalk
部分:1
2
3
4
5
6
7
8
9
10
11
12gitalk:
enable: true
github_id: <repo-owner> # GitHub repo owner
repo: <repo-name> # Repository name to store issues
client_id: <client-id> # GitHub Application Client ID
client_secret: <app-secret> # GitHub Application Client Secret
admin_user: <admin> # GitHub repo owner and collaborators, only these guys can initialize gitHub issues
distraction_free_mode: true # Facebook-like distraction free mode
# Gitalk's display language depends on user's browser or system environment
# If you want everyone visiting your site to see a uniform language, you can set a force language value
# Available values: en | es-ES | fr | ru | zh-CN | zh-TW
language: zh-CN
github_id
:储存项目的用户的GitHub用户名repo
:储存issue
的repo
client_id
&client_secret
:这里申请