Move to Hexo

Today, I moved my blog from Wordpress to Hexo. I use github.io to host the blog.

The reason I choose Hexo not Jekyll mainly is I am more familiar with Node.js than Ruby so I can write plugins easily.

Hexo is a very powerful static content generator which converts MarkDown posts to Html.

To install Hexo, simply:

1
2
3
npm install -g hexo
hex init #create a new blog in current folder
npm install . #install dependencies

To serve content locally:

1
hexo serve

To generate static content:

1
hexo g

To deploy to github:

  1. open _config.yml
  2. add deploy section:
1
2
3
4
deploy:
type: git
repo: <your github.io repo>
branch: master
  1. then run:
1
hexo deploy -g

There are still a lot of powerful function in Hexo. Check here for more details.