详细的教学视频参考:
B站教学视频: https://www.bilibili.com/video/BV1XP4y187h7
liyin主题配置与修改
hexo + liyin + gitalk
下载liyin主题:
github下载:
https://github.com/litten/hexo-theme-yilia.git
云盘下载:
百度云盘链接:
链接:https://pan.baidu.com/s/1Q1nglbMHr_SIDS8e0YBhVA 提取码:1024
通过Gitalk配置博客的评论
https://blog.csdn.net/qq_33430083/article/details/105651320
安装
- cnpm install --save hexo-deployer-git
- cnpm install hexo-plugin-gitalk --save
注册一个OAuth application
https://github.com/settings/applications/new
在github创建一个存放评论的仓库
根路径下 _config.yml配置
theme: yilia
deploy:
type: 'git'
repo: 'https://github.com/用户名/用户名.github.io.git'
branch: 'main'
plugins:
gitalk:
clientID: xxx
clientSecret: xxx
repo: 存放评论信息的仓库名
owner: github的用户名
admin:
- github的用户名
distractionFreeMode: false
|