This blog based on
- hexo: default branch. Create article by this branch.
- master: used for generating files. This is github pages's defined branch. After run helo deploy defined in _config.yaml, will update master branch.
deploy: - type: git repo: [email protected]:shufanhao/shufanhao.github.io.git branch: master
git clone [email protected]:shufanhao/shufanhao.github.io.git
cd shufanhao.github.io
# Update submodule
git submodule init
git submodule update
Install hexo and packages
npm install hexo-cli -g
npm install --save hexo-renderer-pug
npm install hexo-abbrlink --save
Start server:
hexo clean && hexo s
hexo clean && hexo d
hexo new xxx
- update 图床.