前面讲了如何使用hexo+css搭建本身的博客,今天主要是总结下如何把本地能访问的静态的博客部署到github上。以重写weex使用手册为例(不要问我为何这么无聊,等你怀孕了就知道了)。css
博客地址:https://stardew516.github.io/(迁移:https://stardew.github.io/)
博客部署地址:https://github.com/stardew516...(https://github.com/stardew/stardew.github.io)git
博客源码地址:https://github.com/stardew516...github
npm install hexo-deployer-git --save
# 部署部分的设置 deploy: type: git repo: https://github.com/stardew516/stardew516.github.io.git branch: master message: hexo + css
hexo generate
hexo deploy