Skip to content

shufanhao/shufanhao.github.io

Repository files navigation

Frank's Blog

This blog based on

Getting Started

Branch definition

  • 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

Clone Repo

git clone [email protected]:shufanhao/shufanhao.github.io.git
cd shufanhao.github.io
# Update submodule
git submodule init
git submodule update

Init env

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

Deploy

hexo clean && hexo d

New Article

hexo new xxx

Todo:

  1. update 图床.