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 | npm install -g hexo |
To serve content locally:
1 | hexo serve |
To generate static content:
1 | hexo g |
To deploy to github:
- open _config.yml
- add deploy section:
1 | deploy: |
- then run:
1 | hexo deploy -g |
There are still a lot of powerful function in Hexo. Check here for more details.