hexo command

npm install hexo-cli -g

hexo init 生成目录,文件等

(sudo) hexo g(generate) 生成静态文件

(sudo) hexo s(server) 用浏览器访问http://localhost:4000/

=============================================

_config.yml

deploy:
  type: git
  repository: github项目地址
  branch: master

hexo g

hexo d(deploy) 部署到github上

hexo clean

hexo 部署失败 error deployer not foud, 执行 npm install hexo-deployer-git --save

猜你喜欢

转载自timelessmemory.iteye.com/blog/2334397