1. npm install hexo-cli -g
2. hexo init blog
3. cd blog
4. npm install
5. hexo server
複製代碼
在blog文件夾下安裝hexo-deployer-git
插件git
npm install hexo-deployer-git --save
複製代碼
而後在_config.yml
文件中配置以下github
deploy:
type: git
repo: git@github.com:haimingyue/simoon.github.io.git
branch: master
name: simoon
email: 420526391@qq.com
複製代碼
建立靜態文件npm
hexo g
bash
部署到遠程的git頁hexo
hexo d
ui
而後在settings裏面配置本身我的的域名spa