Add Comment System

PuGo supports Disqus and Duoshuo comment systems. Just config it in meta.toml.

# comment system
disqus = "test"

# comment system
duoshuo = "test"


the default comment embedded template are embed/comment.html. If you use different comment system, modify the theme file.

Disqus’s universal comment html is like:

<div id="disqus_thread"></div>
  var disqus_shortname = 'site-name';
  var disqus_url = 'page-url';
  var disqus_title = "page-title";
    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
    dsq.src = '';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);

You should write disqus = "site-name" to make correct.