Package Exports
- hexo-auto-category
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hexo-auto-category) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hexo-auto-category
Hexo plugin, which generates categories automatically from folder structure for each post.
Installation
$ npm install hexo-auto-category --saveConfiguration
You can configure this plugin in site _config.yml
# Generate categories from directory-tree
# Dependencies: https://github.com/xu-song/hexo-auto-category
auto_category:
enable: true
depth: # depth of directory-treebuild & preview
$ hexo clean
$ hexo g
$ hexo sExample
The generated categories for post source/_post/web/framework/hexo.md is as follows:
categories:
- web
- frameworkDemo
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.