个人博客

切换机器后编译方式

一、拉取代码

需要在hexo代码线写blog,因为main是用来展示html资源的。需要做分离。

1
git clone -b hexo https://github.com/canaaniteL/canaaniteL.github.io.git

二、准备hexo环境

1
npm install hexo、npm install、npm install hexo-deployer-git

三、主题下载

1
2
3
4
5
6
在2023年9月9日使用的主题是:https://github.com/jerryc127/hexo-theme-butterfly
参考github操作即可
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
npm i hexo-theme-butterfly
npm install --save hexo-filter-mermaid-diagrams 支持画图功能 写法参考
https://butterfly.js.org/posts/4aa8abbe/?highlight=mermaid#mermaid

四、写博客

1
2
3
4
hexo n "blog1"
hexo g
hexo s (测试)
hexo d