Hexo静态博客使用指南

安装Hexo

1
2
3
yum install npm -y
npm config set registry http://registry.npm.taobao.org/
npm install hexo-cli -g
1
2
hexo init blog
cd blog

Hexo常用插件安装与配置

1
2
3
4
5
6
7
npm install hexo --save
npm install hexo-generator-index --save
npm install hexo-generator-archive --save
npm install hexo-generator-category --save
npm install hexo-generator-tag --save
npm install hexo-server --save
npm install hexo-deployer-git --save
1
2
3
4
cd blog
npm install
cd themes
git clone https://github.com/moretwo/hexo-theme.git