Hexo is a fast, simple & powerful blog framework built on Node.js. By using Hexo, I avoided a lot of frustration building a blog while concentrate myself on blog.
Warning: Please go to Hexo to get the most updated guild.
Please download and install Node.js.
Git is used to publish the blog. Git is also a very well-known code version control tool. By using Hexo, you don’t need a lot of knowledge of git.
Please download and install Git.
Install Hexo using npm (Node Package Manager).
$ sudo npm install hexo-cli -g
Now I’m going to create my first blog.
$ hexo init blog
There are several important files and folders in the
Blog settings can be changed here.
It contains the templates of posts, normally there is no to change it.
It contains all original posts
It contains all themes installed, different themes can be switched. Hexo Themes provides plenty of themes to choose.
It does not exist at the beginning, but it will appear after your first deployment. It is all auto generated, all its changes will be overwritten in the next deployment.
Github Pages provides free host for the blog. I already have an account on Github, then I created a repository naming
<username>.github.io. In this way Github can recognize its your personal websites.
GitCafe Pages also provides free host for the blog, but it is faster to access in China. I created a repository name
<username>. In this way GitCafe can recognize its your personal websites
If you have a personal domain, it is very easy to direct the domain to the blog by setting a
CNAME pointing to
In China, DNSPod provides free DNS service and can direct the domain to either GitCafe or Github according to visitor’s IP, which can provide faster access to all visitors.
Deploy segment is in the end on
$ hexo new [layout] "<title>"
Create a new article.
draft, if no
layout is provided, Hexo will use the
default_layout defined in
$ hexo generate
Generate static files.
$ hexo server
Starts a local server, to serve the blog
$ hexo deploy
Deploy the blog.
$ hexo clean
Clean up cache file to avoid weird problems.