hexo-theme-icarus配置 Gitalk 评论系统
-
登录GitHub并点此注册一个新的OAuth应用

-
“注册应用”(Register application)后,在xhbruce blog应用界面复制Client ID与Client Secret并填入主题配置的相应配置项中
Client ID
xxxxxxxxxxxxxxxxxxxx
Client Secret
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Gitalk在Icarus的配置为 themes/icarus/_config.yml
comment:
type: gitalk
client_id: xxxxxxxxxxxxxxxxxxxx
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
repo: Some-of-Your-GitHub-Repo
owner: you_github_name
admin:
- you_github_name
per_page: 20 # 可选填
distraction_free_mode: false # 可选填
pager_direction: last # 可选填
create_issue_manually: false # 可选填
proxy: # 可选填
flip_move_options: # 可选填
enable_hotkey: true # 可选填
- 关于上述配置的含义和可选值,请参考Gitalk官方文档或hexo-component-inferno 中的配置项描述。
Error: Network Error
查看一些blog问题依然,登录github就可以显示正常,发表还是有问题

本文详细介绍了如何在Hexo博客系统中使用Icarus主题配置Gitalk评论系统,包括在GitHub上注册OAuth应用、获取ClientID与ClientSecret、在主题配置文件中设置参数等步骤,帮助用户实现博客评论功能。
331

被折叠的 条评论
为什么被折叠?



