-
-
Notifications
You must be signed in to change notification settings - Fork 36
Plugins
tommy351 edited this page Oct 9, 2012
·
110 revisions
-
Install
npm install <plugin-name> --safe -
Uninstall
npm uninstall <plugin-name> -
List
npm list
Generators generate static files.
- hexo-generator-feed - RSS Feed
- hexo-generator-sitemap - Sitemap
Helpers bring you useful tag in article.
- hexo-helper-blockquote - Blockquote
- hexo-helper-code - Code Block
- hexo-helper-gist - Embed GitHub Gist
- hexo-helper-jsfiddle - Embed jsFiddle
- hexo-helper-pullquote - Pullquote
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/