github+hexo 搭建个站

一、github
 
二、hexo
1.安装 hexo
(1)安装: npm install -g hexo
(2)初始化: hexo init <folder>
(3)生成静态页: hexo generate
(4)本地启动:hexo server
本地输入:http://localhost:4000即可浏览。
三、使用

hexo clean

hexo generate

hexo deploy

 

hexo n #写文章
hexo g #生成
hexo d #部署 # 可与hexo g合并为 hexo d -g
 
问题:ERROR Deployer not found: git
解决:npm install hexo-deployer-git --save 
重新 deploy 即可
 
 
posted @ 2017-05-08 14:02  听风gcl  阅读(163)  评论(0编辑  收藏  举报