0.2.2 • Published 10 months ago

hexo-auto-category v0.2.2

Weekly downloads
20
License
MIT
Repository
github
Last release
10 months ago

Installation | Configuration | Demo | 中文文档 |

hexo-auto-category

Hexo plugin, which generates categories automatically from folder structure for each post.

Installation

$ npm install hexo-auto-category --save

Configuration

You can configure this plugin in Hexo _config.yml

# Generate categories from directory-tree
# Dependencies: https://github.com/xu-song/hexo-auto-category
# depth: the max_depth of directory-tree you want to generate, should > 0
# multiple: multiple category hierarchies
auto_category:
 enable: true
 multiple: true
 depth: 

build & preview

$ hexo clean && hexo g && hexo s

Example

The generated categories for post source/_post/web/framework/hexo.md is as follows:

categories:
  - web
  - framework

Demo

All the categories in ESON's Blog are generated automatically by hexo-auto-category.

Background

As a Hexo user, you must be troubled with front matter setting for each post. With this plugin, you don't need to set categories one by one. hexo-auto-category generates static post categories automatically based on directory/folder name.

Warning

Your original categories will be overwriten.

0.2.2

10 months ago

0.2.1

3 years ago

0.2.0

5 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago