hexo install

Install & theme

use cnpm
npm install -g cnpm —registry=https://registry.npm.taobao.org

1
2
3
4
5
6
7
8
9
10
11
12
13
sudo cnpm install hexo-cli -g
hexo init blog
cd blog

cnpm install
hexo server

# may ship
git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
npm install hexo-renderer-jade --save
npm install hexo-renderer-sass --save

npm install hexo-tag-katex --save

Optimization

  • enter themes\landscape\layout_partial,open head.ejs,delete 31th row fonts.googleapis.com

  • download jquery-2.0.3.min.js put into themes\landscape\source\js , enter themes\landscape\layout_partial, openafter-footer.ejs, replace 17th row to /js/jquery-2.0.3.min.js。