黑白色空间

0%

Hexo guide 2.0 | Hexo指南第二版

增加了一些注意事项

.gitignore要添加忽略

1
.DS_Store
2
Thumbs.db
3
db.json
4
*.log
5
node_modules/
6
public/
7
.deploy*/
8
yarn.lock
9
themes/

hexo部署需要安装部署器

1
yarn add hexo-deployer-git

部署历史文件保留在/.deploy_git

主题使用next比较简洁,并且配置机制容易保存。

安装主题

1
git clone https://github.com/theme-next/hexo-theme-next themes/next

配置把/themes/next/_config.yml复制到/source/_data/next.yml并设置

1
override: true

Reference

  1. hexojs/hexo-deployer-git: Git deployer plugin for Hexo.
  2. hexo-theme-next/DATA-FILES.md at master · theme-next/hexo-theme-next
  3. theme-next/hexo-theme-next: Elegant and powerful theme for Hexo.