log this hexo setup
setup your hexo blog with github pages hosting
install hexo
first, install these two npm packages: hexo-cli, hex-deployer-git
1 | npm install -g hexo-cli |
create a hexo project
create a hexo project with the same name as your github repo
1 | hexo init ocre.github.io |
create a new post
1 | hexo new "my first hexo blog" |
verify your hexo project:
1 | hexo server |
and you will get a running hexo site at http://localhost:4000/
create github pages repo
create a new github repoistory named as ‘your_github_username’.github.io
deploy to github
modify git config in _config.yml
1 | Deployment |
test deploy
1 | hexo generate |
verify it via https://ocre.github.io
Mission Complete!