Hexo Init

1
2
3
4
5
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

Config github

  • Create repo [username].github.io
  • in _config.yml, write
1
2
3
4
5
deploy:
type: git
repo: <repository url>
branch: [branch]
message: [message]

Update

1
2
3
hexo new [post/page/draft] <title>
hexo generate
hexo deploy