hexo-theme-amane/layout/plugin/google-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;
}