hexo-theme-amane/layout/plugin/baidu-analytics.locals.js

7 lines
160 B
JavaScript

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