hexo-auto-tagger
v0.0.3
Published
Automatically adds tags to posts if the post contains any predefined key tag word or phrases.
Downloads
2
Readme
hexo-auto-tagger
Automatically add tags to a post in a Hexo blog by checking the post for predefined keywords.
Let's say you want to tag every article that references any province of Canada with that provinces name. You could add each province name to the tag keywords in your config and if that province name appears in an article's content a tag will be automatically added to that article.
Will not add duplicate tags.
NOTE: This is a work in progress. Please wait for version 1.0.0.
Installation
$ npm install hexo-auto-tagger --save
Requires tag_keywords in the config in order to work. See below.
Options
auto_tagger:
tag_keywords:
- Gregory Pike
- Newfoundland & Labrador
tag_keywords: An array of keywords to search for in each post
Deploying Contributions
$ git commit -am "Your commit message"
$ npm version patch|minor|major
$ git push origin master --tags
License
MIT