0.1.0 • Published 8 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 --saveconfig.yml file:
dir2category: trueSample
The generated categories for post _post\web\framework\hexo.md will look like the following:
categories:
- web
- framework0.1.0
8 years ago