Github,Jekyll博客添加Intensedebate评论
步骤
1.先去IntenseDebate注册一个账号 https://www.intensedebate.com
2.会得到一串javascript代码
<script>
var idcomments_acct = '你的acct_id';
var idcomments_post_id;
var idcomments_post_url;
</script>
3.在Jekyll站点的_includes目录下创建intensedebate-comments.html文件.
<script>
var idcomments_acct = '你的acct_id';
var idcomments_post_id = '/%E4%B8%80%E4%B8%9A/2017/08/17/intensedebateComment/';
var idcomments_post_url;
</script>
<span id="IDCommentsPostTitle" style="display:none"></span>
<script type='text/javascript' src='https://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
4.在站点配置文件_config.yml中添加评论配置参数,方便灵活的enable/disable评论功能
#enable intensedebate_comments or not
intensedebate_comments: true
5.在post.html文件末尾后面添加代码引用intensedebate-comments.html来显示评论框
6.测试完成。