Build Blog With Hexo On Github
Install node.js with nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
nvm install stable
Install hero
npm config set registry http://registry.cnpmjs.org
or
npm install -g hexo-cli --registry=http://r.cnpmjs.org
$ hexo init <folder>
$ cd <folder>
$ npm install
常用命令
hexo clean
hexo generate
hexo deploy
Deploy With Git
$ npm install hexo-deployer-git --save
deploy:
type: git
repo: <repository url>
branch: [branch]
_config.xml 严格的格式要求
注意 : 后面有个空格
博客地址: https://daaoling.github.io/