How to use Hexo to deploy static site

Issue #392

It’s been a long journey since https://github.com/onmyway133/blog/issues/1, next step is to keep GitHub issues as source, and mirror those to a static site.

Use 2 repos

1
2
3
4
npm install -g hexo-cli
echo $PATH=$PATH:/Users/khoa/.nodenv/versions/10.15.2/bin/hexo
hexo init blog
npm install hexo-deployer-git --save

Update _config.yml

1
2
3
4
deploy:
type: git
repo: https://github.com/onmyway133/onmyway133.github.io.git
branch: master
1
2
hexo clean
hexo deploy

Read more

Comments