git submodule update --init
npm install
npm run server
-
master: 主分支
-
gh-pages: hexo deploy 分支
-
temp: 临时commit分支
$ hexo new post "My New Post" # post is template
用github action了
- 推送到gh-pages分支, github.io: https://luxiaolululu.github.io/
- 推送到cos: https://hellolulu-1258995667.cos-website.ap-nanjing.myqcloud.com/
submodule: git submodule add https://github.com/luxiaolululu/hexo-theme-yilia.git themes/yilia
fork from 原来的yilia主题,然后修改了config文件
参考文章: https://blog.csdn.net/xjm850552586/article/details/84101345
需要替换js文件
cp ./node_modules_tmp/hexo-asset-image-index.js ./node_modules/hexo-asset-image/index.js