hexo-theme-next
Advanced tools
Comparing version 8.12.3 to 8.13.0
{ | ||
"name": "hexo-theme-next", | ||
"version": "8.12.3", | ||
"version": "8.13.0", | ||
"description": "Elegant and powerful theme for Hexo.", | ||
@@ -20,3 +20,3 @@ "main": "package.json", | ||
"test": "mocha test/index.js", | ||
"test-cov": "nyc npm test" | ||
"test-cov": "c8 npm test" | ||
}, | ||
@@ -37,4 +37,5 @@ "repository": "next-theme/hexo-theme-next", | ||
"@next-theme/eslint-config": "0.0.3", | ||
"c8": "7.12.0", | ||
"chai": "4.3.6", | ||
"eslint": "8.20.0", | ||
"eslint": "8.23.0", | ||
"hexo": "6.2.0", | ||
@@ -44,5 +45,4 @@ "hexo-renderer-marked": "5.0.0", | ||
"mocha": "10.0.0", | ||
"nyc": "15.1.0", | ||
"stylint": "2.0.0" | ||
} | ||
} |
@@ -13,3 +13,3 @@ /* global hexo */ | ||
injects.comment.raw('disqusjs', ` | ||
<div class="comments" id="disqus_thread"> | ||
<div class="comments disqusjs"> | ||
<noscript>Please enable JavaScript to view the comments powered by Disqus.</noscript> | ||
@@ -16,0 +16,0 @@ </div> |
@@ -17,3 +17,8 @@ /* global NexT, CONFIG, DisqusJS */ | ||
}); | ||
window.dsqjs.render(document.querySelector('.disqusjs')); | ||
}); | ||
}); | ||
document.addEventListener('pjax:send', () => { | ||
if (window.dsqjs) window.dsqjs.destroy(); | ||
}); |
@@ -89,3 +89,8 @@ /* global CONFIG */ | ||
const api_server = app_id.slice(-9) === '-MdYXbMMI' ? `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com` : server_url; | ||
let api_server; | ||
if (server_url) { | ||
api_server = server_url; | ||
} else if (app_id.slice(-9) === '-MdYXbMMI') { | ||
api_server = `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`; | ||
} | ||
@@ -92,0 +97,0 @@ document.addEventListener('page:loaded', () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
446590
279
2979