From d6f7c51f6c13882986b1f51a2f673aa89bbd6d25 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 27 Dec 2020 14:44:19 +0800 Subject: [PATCH] Simplify the `.comments` element --- layout/_third-party/comments/gitalk.njk | 4 ++-- layout/_third-party/comments/utterances.njk | 4 ++-- scripts/filters/comment/changyan.js | 6 +----- scripts/filters/comment/disqus.js | 6 ++---- scripts/filters/comment/disqusjs.js | 6 ++---- scripts/filters/comment/gitalk.js | 2 +- scripts/filters/comment/isso.js | 6 +----- scripts/filters/comment/livere.js | 6 +----- scripts/filters/comment/utterances.js | 6 +----- source/js/algolia-search.js | 2 +- 10 files changed, 14 insertions(+), 34 deletions(-) diff --git a/layout/_third-party/comments/gitalk.njk b/layout/_third-party/comments/gitalk.njk index a66fcee..a25b6f7 100644 --- a/layout/_third-party/comments/gitalk.njk +++ b/layout/_third-party/comments/gitalk.njk @@ -2,7 +2,7 @@ diff --git a/layout/_third-party/comments/utterances.njk b/layout/_third-party/comments/utterances.njk index 85625af..262cb4f 100644 --- a/layout/_third-party/comments/utterances.njk +++ b/layout/_third-party/comments/utterances.njk @@ -1,6 +1,6 @@ {%- if page.comments %} {%- endif %} diff --git a/scripts/filters/comment/changyan.js b/scripts/filters/comment/changyan.js index 71e4251..a9792a0 100644 --- a/scripts/filters/comment/changyan.js +++ b/scripts/filters/comment/changyan.js @@ -10,11 +10,7 @@ hexo.extend.filter.register('theme_inject', injects => { const config = hexo.theme.config.changyan; if (!config.enable || !config.appid || !config.appkey) return; - injects.comment.raw('changyan', ` -