hexo-is
v1.0.5
Published
Determine whether hexo is
Downloads
87
Readme
Determine hexo instance
Where is you now ? page ? archive ? whatever
this plugin can be used to determine where you are from plugin hexo
Usage
- full test: https://github.com/dimaslanjaka/hexo-is/tree/master/test
const hexoIs = require('hexo-is');
function where(content, data){
console.log(hexoIs(data));
}
hexo.extend.filter.register("after_render:js", where);
hexo.extend.filter.register("after_render:css", where);
hexo.extend.filter.register("after_render:html", where);