All Projects → zthxxx → hexo-directory-category

zthxxx / hexo-directory-category

Licence: MIT license
Automatically add category to Hexo article according to the article file directory.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hexo-directory-category

hexo-filter-mathjax
💯 Server side MathJax renderer plugin for Hexo.
Stars: ✭ 76 (+117.14%)
Mutual labels:  hexo, hexo-plugin
hexo-bilibili-bangumi
hexo 番剧页面插件,可选数据源:Bilibili, Bangumi
Stars: ✭ 252 (+620%)
Mutual labels:  hexo, hexo-plugin
hexo-covers
Microbrowser covers for Hexo static site generator
Stars: ✭ 15 (-57.14%)
Mutual labels:  hexo, hexo-plugin
hexo-douban-card
在hexo文章中插入豆瓣读书,豆瓣电影,豆瓣音乐组件
Stars: ✭ 56 (+60%)
Mutual labels:  hexo, hexo-plugin
hexo-tag-instagram
Embed instagram photo and movie tag plugin for Hexo.
Stars: ✭ 23 (-34.29%)
Mutual labels:  hexo, hexo-plugin
hexo-hide-posts
A plugin to hide specific posts from your Hexo blog and make them only accessible by links. (隐藏 Hexo 文章)
Stars: ✭ 149 (+325.71%)
Mutual labels:  hexo, hexo-plugin
hexo-steam-games
为Hexo添加Steam游戏库页面
Stars: ✭ 24 (-31.43%)
Mutual labels:  hexo, hexo-plugin
hexo-filter-plantuml
Using PlantUML to generate UML Diagram for hexo
Stars: ✭ 23 (-34.29%)
Mutual labels:  hexo, hexo-plugin
hexo-include-markdown
Easily load markdownfiles in Markdown .
Stars: ✭ 16 (-54.29%)
Mutual labels:  hexo, hexo-plugin
hexo-instagram-wall
Displays up to 18 most recent images from your Instagram account
Stars: ✭ 12 (-65.71%)
Mutual labels:  hexo, hexo-plugin
hexo-filter-optimize
A Hexo plugin that optimize the pages loading speed.
Stars: ✭ 41 (+17.14%)
Mutual labels:  hexo, hexo-plugin
Hexo Auto Category
Generate categories automatically for each post in Hexo
Stars: ✭ 49 (+40%)
Mutual labels:  hexo, category
Jkcategories
JKCategories(iOS-Categories,Category), a collection of useful Objective-C Categories extending iOS Frameworks such as Foundation,UIKit,CoreData,QuartzCore,CoreLocation,MapKit Etc.
Stars: ✭ 3,292 (+9305.71%)
Mutual labels:  categories, category
hexo-netlify-cms
☕ A cup of coffee time to enable Netlify CMS
Stars: ✭ 29 (-17.14%)
Mutual labels:  hexo, hexo-plugin
hexo-tag-hint
A Hexo tag plugin to display text hint/spoiler tooltip.
Stars: ✭ 26 (-25.71%)
Mutual labels:  hexo, hexo-plugin
hexo-tag-xvideos
🔞 Embed xvideos player in your Hexo posts/pages
Stars: ✭ 17 (-51.43%)
Mutual labels:  hexo, hexo-plugin
hexo-reading-time
Plugin for Hexo CMS to display reading time for article
Stars: ✭ 28 (-20%)
Mutual labels:  hexo, hexo-plugin
MKMapView-ZoomLevel
MKMapView category with zoom level extension.
Stars: ✭ 23 (-34.29%)
Mutual labels:  category
gtree
Output tree🌳 or Make directories📁 from #Markdown or Programmatically. Provide CLI, Golang library and Web (using #Wasm ).
Stars: ✭ 88 (+151.43%)
Mutual labels:  directory
hexo-theme-kaze
⛵ A responsive, modern Hexo theme
Stars: ✭ 172 (+391.43%)
Mutual labels:  hexo

hexo-directory-category

Build Status Coverage Status NPM Version npm downloads GitHub release

Automatically add front-matter categories to Hexo article according to the article file directory.

Directory is means relative form article file path to Hexo source _posts folder.

Features

  • See the details in hexo-theme-Wikitten issues#4
  • Automatically add category to article according to the file directory, if article front-matter haven't option categories.
  • Easy to categorize articles, or change the categories.

Install

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

Options

You can configure this plugin in site _config.yml.

auto_dir_categorize:
	enable: true  # options:true, false; default is true
	force: false # options:true, false; default is false
  • enable - Enable the plugin. Defaults to true.
  • force - Overwrite article front-matter categories, even if it has option categories.Defaults to false.

Example

1. enable: true, force: false

# file: ./_posts/Linux/Vim/note/test.md
...
categories: [CS, Usage]
tags: [...]

# After hexo generate, it will nothing Conversion. categories: [CS, Usage]
# file: ./_posts/Linux/Vim/note/test.md
...
# categories: [...]
tags: [...]

# After hexo generate, it will convert to categories: [Linux, Vim, note]

2. enable: true, force: true

# file: ./_posts/Linux/Vim/note/test.md
...
categories: [CS, Usage]
tags: [...]

# After hexo generate, it also will convert to categories: [Linux, Vim, note]

License

MIT LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].