From 0834d1ce01c1ae26e1f94591699e7057d908f183 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 1 Jan 2023 21:09:18 +0800 Subject: [PATCH] Fix class name of disqusjs * The class name of comment-button is also disqusjs --- scripts/filters/comment/disqusjs.js | 2 +- source/js/third-party/comments/disqusjs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/filters/comment/disqusjs.js b/scripts/filters/comment/disqusjs.js index 42cd344..79f15c0 100644 --- a/scripts/filters/comment/disqusjs.js +++ b/scripts/filters/comment/disqusjs.js @@ -10,7 +10,7 @@ hexo.extend.filter.register('theme_inject', injects => { if (!config.enable || !config.shortname || !config.apikey) return; injects.comment.raw('disqusjs', ` -
+
`, {}, { cache: true }); diff --git a/source/js/third-party/comments/disqusjs.js b/source/js/third-party/comments/disqusjs.js index f22579a..d8401ee 100644 --- a/source/js/third-party/comments/disqusjs.js +++ b/source/js/third-party/comments/disqusjs.js @@ -14,7 +14,7 @@ document.addEventListener('page:loaded', () => { identifier: CONFIG.page.path, title : CONFIG.page.title }); - window.dsqjs.render(document.querySelector('.disqusjs')); + window.dsqjs.render(document.querySelector('.disqusjs-container')); }); });