
部署Hexo
新建一个文件夹,比如,Blog,然后进入该文件夹下:
npm install hexo-cli -g
hexo version
|
安装依赖包
npm install
|
配置站点文件
为了能够使Hexo部署到GitHub上,需要安装一个插件:
npm install hexo-deployer-git --save
|
部署博客的配置:
# Deployment
## Docs: http://hexo.io/docs/deployment.html
# deploy:
# type: git
# repo: git@github.com:michael728/michael728.github.io.git
# branch: master
deploy:
type: git
repo: git@github.com:Michael728/michael728.github.io.git #从github博客项目复制,切换为ssh地址
branch: master