hexo-theme-amane/layout/plugin/hotjar.locals.js

7 lines
156 B
JavaScript

module.exports = (ctx, locals) => {
const { head, plugin } = locals;
if (!head || !plugin.site_id) {
return null;
}
return locals;
}