diff --git a/index.js b/index.js index 15258b0..bdaaaad 100644 --- a/index.js +++ b/index.js @@ -30,8 +30,10 @@ hexo.extend.tag.register("github_emoji", (args) => ); hexo.extend.filter.register("after_post_render", (data) => { - if (options.inject !== false && (!options.enable || data["no-emoji"])) { - data.content = `` + data.content; + if (!options.enable || data["no-emoji"]) { + if (options.inject !== false) { + data.content = `` + data.content; + } return data; }