This is my first blog. The blogsite is deployed by Hexo, you can check documentation for more info. In this blog, I will constantly update the common commands and configuarations.

Quick Start

Create a new post

1
$ hexo new "My New Post"

Run server

1
$ hexo server 

or

1
$ hexo s 

Generate static files

1
$ hexo generate

or

1
$ hexo g

Deploy to remote sites

1
$ hexo deploy

or

1
$ hexo d

three-in-one command

use it to deploy all the updates on your blog to github pages.

1
hexo clean && hexo generate && hexo deploy

Some problem

Busuanzi count not working

Busuanzi statistics depend on an external script, this script may not work.

solution:
add the following code in themes/butterfly/layout/includes/head.pug:

1
script(src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js")

git hangs while running some command

e.g. when running hexo g, the git get stucked

solution: we can use

1
hexo g --debug

to find out the exact place where it gets stucked.