按照官方说法,只需要在config.toml文件中加上disqus的shortname即可让博客拥有disqus评论系统的功能。但折腾许久未能成功,现提供另一种添加disqus的方式。
1.注册disqus
官网注册帐号 https://disqus.com/
使用方式可以参考 http://alfred-sun.github.io/blog/2014/12/05/github-pages/
**2.使用disqus** 这里使用universal code的方式,将生成的code放到新文件comments.html中:
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT