github+hexo 搭建个站

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

hexo cleangit

hexo generategithub

hexo deploynpm

 

hexo n  #写文章
hexo g  #生成
hexo d  #部署 # 可与hexo g合并为 hexo d -g
 
问题:ERROR Deployer not found: git
解决:npm install hexo-deployer-git --save 从新 deploy 便可
相关文章
相关标签/搜索