hexo使用笔记

hexo使用笔记

安装

1
npm install -g hexo-cli

常用命令

1
2
3
4
hexo new [layout] <title> #写新文章
hexo g #生成
hexo server #本地运行
hexo deploy #部署

部署配置

git方式

安装: npm install hexo-deployer-git --save

修改_config.yml文件:

1
2
3
4
deploy:
type: git
repository: git@github.com:heguichuan/heguichuan.github.io.git
branch: master