Hexo-配置

外观配置

主题

Butterfly
项目地址: https://github.com/jerryc127/hexo-theme-butterfly

GitHub贡献图-Gitcalendar

教程文档:https://akilar.top/posts/1f9c68c9/

1
npm install hexo-filter-gitcalendar --save

功能配置

配置文章链接转数字或字母

项目地址: https://github.com/rozbo/hexo-abbrlink

1
npm install hexo-abbrlink --save

本地搜索依赖

项目地址:https://github.com/wzpan/hexo-generator-search

1
npm install hexo-generator-search --save

自动分类-hexo-auto-category

教程文档:https://github.com/xu-song/hexo-auto-category

采用npm安装:

1
npm install hexo-auto-category --save

配置:
在站点根目录下的_config.yml添加:

1
2
3
4
5
6
# Generate categories from directory-tree
# Dependencies: https://github.com/xu-song/hexo-auto-category
# depth: the depth of directory-tree you want to generate, should > 0
auto_category:
enable: true
depth:

如果只想生成第一级目录分类,可以设置depth属性,比如:

1
2
3
auto_category:
enable: true
depth: 1

husky

参考文章:使用 husky 每次提交时进行代码检查 | EsunR-Blog