This module impelements disqus comments on your site.
{
"disqus_shortname" : "paste-your-shortname-here",
"disqus_scopes" : ["article","page","profile"]
}
Full scope list : "disqus_scopes" : ["article","page","homepage","profile"]
// Custom Javascript
(function() { // DON'T EDIT BELOW THIS LINE
var config = window.getConfiguration();
var post = window.getPost();
if(config.disqus_scopes.indexOf(post.type) == -1){
console.log("disqus is not enabled for ",post.type);
return;
}
var d = document, s = d.createElement('script');
s.src = "https://"+config.disqus_shortname+".disqus.com/embed.js";
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
⚠️ Do not edit the code if you do not know what do you do.
<!--- Custom HTML End -->
<div id="disqus_thread"></div>