Contents
  1. 1. Command
  2. 2. Build
  3. 3. Publish
  4. 4. Themes submodule
  5. 5. Update

Command

1
2
3
4
5
6
hexo new <title> / hexo n <title> #生成文章,或者source\_posts手动编辑
hexo server / hexo s #本地发布预览效果
hexo generate / hexo g #生成public静态文件
hexo clean
hexo list <type>
hexo version

Build

1
2
3
4
5
6
7
install nodejs
install npm
npm install hexo-cli -g
npm install hexo --save
hexo init <folder>
cd <folder>
npm install

Publish

1
2
3
hexo clean
hexo d -g
hexo s --debug

Themes submodule

1
2
3
git clone git@github.com:bigsuperangel/hexo_md.git
git submodule init
git submodule update

Update

1
2
3
4
npm install -g hexo-cli
npm i -g npm-check-updates
ncu -u
npm install
Contents
  1. 1. Command
  2. 2. Build
  3. 3. Publish
  4. 4. Themes submodule
  5. 5. Update