###构建构成
- 安装node: * https://nodejs.org/en/download/
- 安装git: * http://git-scm.com/download/
- 安装hexo: npm install hexo-cli -g
- cd Blog
- 执行 npm install
###常用命令
$ hexo n == hexo new <title> //新建md文件(文章)
$ hexo g == hexo generate //构建静态文件
$ hexo s == hexo server //搭建服务,访问http://localhost:4000/
$ hexo d == hexo deploy //部署代码至github page
$ hexo clean //清除缓存
$ hexo -v
###使用问题
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Used --force, continuing.
Warning: Exited with error code 1 Used --force, continuing.
grunt需要全局安装ruby和sass,而且必须添加至全局变量,解决办法
###资料