使用github page和hexo搭建博客

准备工作

需要安装的有:

  1. git
  2. nodejs
  3. hexo

Git

首先需要在gitbub上注册自己的账户, 然后新建一个自己的仓库。仓库名必须是: username.github.io

nodejs

安装最新版本的nodejs

hexo

安装hexo特别简单

  • windows在cmder或者Git bash执行:
1
$ npm install hexo-cli -g
  • 生成自己的博客
1
2
3
4
$ cd path/to/your/blod
$ hexo init blog
$ hexo g
$ hexo s