Hexo 博客的搭建
参考:
安装前提
- Node.js
- git
建站
1 | $ hexo init <folder> |
配置
__config.yml
详细配置
nexT主题安装
1 | $ git clone https://github.com/theme-next/hexo-theme-next themes/next |
theme: next
1 | # 启动本地服务器,预览 |
部署
1 | # 推送到 dev远程分支 |
__config.yml
部署到主分支1
2
3
4
5deploy:
type: git
# repo: https://gh_token@github.com/Scott-feng/scott-feng.github.io.git
repo: git@github.com:Scott-feng/scott-feng.github.io.git
branch: master
1 | $ hexo clean |