Recap: Hexo + NexT + Github Pages

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
2
3
4
5
6
7
8
9
# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------

# Schemes
# scheme: Muse
# scheme: Mist
# scheme: Pisces
scheme: Gemini

Github Pages

Update _config.yml

1
2
3
4
deploy:
type: git
repo: git@github.com:xxx/xxx.github.io.git
branch: master

Deploy

1
2
3
npm install hexo-deployer-git --save # once
hexo generate
hexo deploy