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')); }); });