依據目錄結構分類 - hexo-directory-category

本文於640天之前發表,文中內容可能已經過時。如有疑問,請在評論區留言。

用途

  • 安裝後可依據目錄自行生成分類
  • 搭配的樣板:ylion

安裝

1
2
cd <your-hexo-site>
npm install --save hexo-directory-category

設定

  • You can configure this plugin in site _config.yml.

    1
    2
    3
    auto_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]
avatar
Mermaid 安裝

  1. 1. 用途
  2. 2. 安裝
  3. 3. 設定