主题介绍

这里使用的是DIYgod的hexo-theme-sagiri主题

github: https://github.com/DIYgod/hexo-theme-sagiri

DIYgod: https://diygod.me/2020/#more

需要补充的包

1
2
3
4
5
npm install hexo-renderer-swig \
&& npm install nprogress \
&& npm install hexo-tag-aplayer \
&& npm install zoom-image \
&& npm install disqusjs \

配置主题

克隆主题

1
2
3
4
cd themes
git clone https://github.com/DIYgod/hexo-theme-sagiri.git

cd hexo-theme-sagiri

修改sagiri的小bug

修改hexo-theme-sagiri/source/css/main.styl文件

1
2
3
4
5
6
// Custom Layer
// --------------------------------------------------
@import "_custom/custom";

// @import "../../node_modules/nprogress/nprogress.css"
@import "../../../node_modules/nprogress/nprogress.css"

回到hexo目录

1
2
3
4
5
6
# 清理
hexo clean
# 编译
hexo g
# 查看效果
hexo s