Hexo配置

Hexo简介

hexo 是一款基于Node.js的静态博客框架。
中文文档: https://hexo.io/zh-cn/docs/configuration.html

常用命令

1
2
3
4
5
6
7
hexo new "postName"      #新建文章
hexo new page "pageName" #新建页面
hexo generate #生成静态页面至public目录
hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
hexo deploy #将.deploy目录部署到GitHub
hexo help #查看帮助
hexo version #查看Hexo的版本

部署

修改_config.yml文件

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

0%