-
-
Notifications
You must be signed in to change notification settings - Fork 36
Plugins
tommy351 edited this page Oct 11, 2012
·
110 revisions
-
Install
npm install <plugin-name> -
Update
npm update -
Uninstall
npm uninstall <plugin-name> -
List
npm list
Generators generate static files.
- hexo-generator-feed - RSS Feed
- hexo-generator-sitemap - Sitemap
Renderers make Hexo support more template engines.
- hexo-renderer-coffeescript - CoffeeScript
- hexo-renderer-haml - Haml
- hexo-renderer-jade - Jade
- hexo-renderer-less - Less
There're 3 types of plugins:
- Generator: Generate static file
- Helper: Tags used in article
- Renderer: Support of other template engine
hexo.extend.generator.register(function(locals, render, callback){
// code
});hexo.extend.helper.register(tag, function(args, content){
// code
}, end);hexo.extend.renderer.register(ext, output, function(file, content, [locals], [callback]){
// code
}, sync);Caution
Attention! This wiki is no longer maintained.
Please visit the official website. https://hexo.io/
Caution
Attention! This wiki is no longer maintained.
Please visit the official website. https://hexo.io/