mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Fix not loading disqusjs (#150)
This commit is contained in:
parent
37ac8dac9f
commit
851bf27836
@ -6,7 +6,7 @@ const path = require('path');
|
|||||||
|
|
||||||
// Add comment
|
// Add comment
|
||||||
hexo.extend.filter.register('theme_inject', injects => {
|
hexo.extend.filter.register('theme_inject', injects => {
|
||||||
const config = hexo.theme.config.disqus;
|
const config = hexo.theme.config.disqusjs;
|
||||||
if (!config.enable || !config.shortname || !config.apikey) return;
|
if (!config.enable || !config.shortname || !config.apikey) return;
|
||||||
|
|
||||||
injects.comment.raw('disqusjs', `
|
injects.comment.raw('disqusjs', `
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user