Hexo
Put blog source code to anywhere but github pages’ master branch.
NexT
Add NexT to blog as git submodule.
And change the scheme in themes/next/_config.yml (optional)
1 | # --------------------------------------------------------------- |
Github Pages
Update _config.yml1
2
3
4deploy:
type: git
repo: git@github.com:xxx/xxx.github.io.git
branch: master
Deploy1
2
3npm install hexo-deployer-git --save # once
hexo generate
hexo deploy