@breakerthb
2017-03-18T07:11:30.000000Z
字数 443
阅读 1610
Hexo
GitHub
Blog
在GitHub上创建一个代码仓库,命名为:
your_user_name.github.io
创建过程中点击“Initilize and create README”,创建一个README.md文件。
找到Deployment修改如下:
https://github.com/name/name.github.io.git
注意,repo地址一定是github上的仓库地址。这样才能把部署目录内容上传到github上。
安装部署工具
$ npm install hexo-deployer-git --save
发布
$ hexo g // 重新生成博客
$ hexo d // 发布
发布过程中会要求输入github用户名和密码。
最后,在浏览器中通过以下URL进行查看:
http://your_user_name.github.io/
注意换成自己的用户名。