0.1.0 • Published 6 years ago
hexo-dir2category v0.1.0
hexo-dir2category
A plugin to generate categories automatically for each post in Hexo
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-dir2category
generate static post category based on directory.
How to install
Add plugin to Hexo:
npm install hexo-dir2category --save
config.yml file:
dir2category: true
Sample
The generated categories for post _post\web\framework\hexo.md
will look like the following:
categories:
- web
- framework
0.1.0
6 years ago