安装
- 安装前提: nodejs
- 安装 nodejs
- 直接下载安装: Nodejs
- 安装 nodejs
- 安装 hexo
1
npm install -g hexo-cli
初始化项目
- 找个文件夹
1
hexo init
使用 vexo theme
- theme 地址: Vexo
Download/Checkout this theme into your project
1
2
3
4
5cd your-hexo-folder
git clone https://github.com/yanm1ng/hexo-theme-vexo.git themes/vexo
cp -R themes/vexo/_source/* source/Update project
_config.ymltheme config, look like this1
themes: vexo
Here theme’s name must same as the theme folder name.
Modify theme
themes/vexo/_config.ymlwith your own info.
创建新文章
1 | hexo new "title" |
发布
- 测试, 查看效果
hexo server
- 测试, 查看效果
- 生成到 public 文件夹
hexo g
- 生成到 public 文件夹
- copy public 里的内容到 github.io 项目, 并提交