hexo-is
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Determine hexo instance

Where is you now ? page ? archive ? whatever

this plugin can be used to determine where you are from plugin hexo

Usage

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);

Readme

Keywords

none

Package Sidebar

Install

npm i hexo-is

Weekly Downloads

27

Version

1.0.5

License

ISC

Unpacked Size

491 kB

Total Files

13

Last publish

Collaborators

  • dimaslanjaka