Hexo Basic Usage

This is just a tips about Hexo.

Installation

Just node.js and git:

1
2
3
4
5
6
7
8
9
10
# node.js
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
nvm install 0.12
# hexo
npm install -g hexo-cli
# update
# npm update -g hexo-cli
# git
yum install git
# apt-get install git

When computer reboot, u need to reload the node.js:

1
2
nvm ls
nvm use 0.12

Common Usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# new blog
hexo n ""
# generate
hexo g
# deploy
hexo d
# publish
hexo p
# server
hexo s
# clean
hexo clean
# deploy with comment
hexo d -m ""

Reference

Hexo Doc