0%

01-Deploy hexo blog to githubPage

  1. Install hexo-deployer-git.
    1
    2
    cd hexo_project
    npm install hexo-deployer-git --save
  1. Edit _config.yml

    1
    2
    3
    4
    5
    deploy:
    type: git
    repo: <repository url> #https://github.com/DanielPei/danielpei.github.io
    branch: [branch] # master
    message: [message] # leave this blank
  2. Deploy

    1
    hexo clean && hexo deploy

Ref:

  1. Hexo one-command-deploy