Fix class name of disqusjs

* The class name of comment-button is also disqusjs
This commit is contained in:
Mimi 2023-01-01 21:09:18 +08:00
parent 0ed4632f34
commit 0834d1ce01
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ hexo.extend.filter.register('theme_inject', injects => {
if (!config.enable || !config.shortname || !config.apikey) return;
injects.comment.raw('disqusjs', `
<div class="comments disqusjs">
<div class="comments disqusjs-container">
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
</div>
`, {}, { cache: true });

View File

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