依據目錄結構分類 - hexo-directory-category
本文於640天之前發表,文中內容可能已經過時。如有疑問,請在評論區留言。
用途
- 安裝後可依據目錄自行生成分類
- 搭配的樣板:ylion
安裝
1 | cd <your-hexo-site> |
設定
You can configure this plugin in site _config.yml.
1
2
3auto_dir_categorize:
enable: true # options:true, false; default is true
force: false # options:true, false; default is false若 force 開啟後可在文章中設定強制分類
1
2
3
4
5
6# file: ./_posts/Linux/Vim/note/test.md
...
categories: [CS, Usage]
tags: [...]
# After hexo generate, it also will convert to categories: [Linux, Vim, note]