mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Fix class name of disqusjs
* The class name of comment-button is also disqusjs
This commit is contained in:
parent
0ed4632f34
commit
0834d1ce01
@ -10,7 +10,7 @@ hexo.extend.filter.register('theme_inject', injects => {
|
|||||||
if (!config.enable || !config.shortname || !config.apikey) return;
|
if (!config.enable || !config.shortname || !config.apikey) return;
|
||||||
|
|
||||||
injects.comment.raw('disqusjs', `
|
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>
|
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript>
|
||||||
</div>
|
</div>
|
||||||
`, {}, { cache: true });
|
`, {}, { cache: true });
|
||||||
|
|||||||
2
source/js/third-party/comments/disqusjs.js
vendored
2
source/js/third-party/comments/disqusjs.js
vendored
@ -14,7 +14,7 @@ document.addEventListener('page:loaded', () => {
|
|||||||
identifier: CONFIG.page.path,
|
identifier: CONFIG.page.path,
|
||||||
title : CONFIG.page.title
|
title : CONFIG.page.title
|
||||||
});
|
});
|
||||||
window.dsqjs.render(document.querySelector('.disqusjs'));
|
window.dsqjs.render(document.querySelector('.disqusjs-container'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user