[关闭]
@ZSCDumin 2018-01-30T13:36:19.000000Z 字数 424 阅读 493

Hexo + Github 制作自己的博客


具体步骤如下

1. 创建一个文件夹(如Blog)

2. 开始安装Hexo,在Bolg文件夹里面打开git bash,输入如下命令

  1. $ npm install hexo -g

3. 初始化Hexo

  1. $ hexo init

4. 输入命令,安装所需要的组件

  1. $ npm install

5. 首次体验Hexo

  1. $ hexo g

6. 开启服务器,访问该网址,正式体验Hexo

  1. $ hexo s

7. 首次体验Hexo

  1. $ hexo g

8. 配置Deployment,在其文件夹中,找到_config.yml文件,修改repo值(在末尾)

  1. deploy:
  2. type: git
  3. repository: git@github.com:ZSCDumin/ZSCDumin.github.io.git
  4. branch: master

9. 新建一篇博客,命令如下

  1. $ hexo new post "博客名"

10. 安装一个扩展

  1. $ npm install hexo-deployer-git --save

11. 生成以及部署

  1. $ hexo d -g
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注