*链接地址请点击 多说站点创建地址


<!-- 多说评论框 start -->
<div class="ds-thread"
data-thread-key="请将此处替换成你站点的ID" data-title="请替换成文章的标题" data-url="请替换成文章的网址"></div>
# 由于变量在这里写了博客里会乱,所以替换方法见下面
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"galengao"};
(function() {
var ds = document.createElement(‘script‘);
ds.type = ‘text/javascript‘;ds.async = true;
ds.src = (document.location.protocol == ‘https:‘ ? ‘https:‘ : ‘http:‘) + ‘//static.duoshuo.com/embed.js‘;
ds.charset = ‘UTF-8‘;
(document.getElementsByTagName(‘head‘)[0]
|| document.getElementsByTagName(‘body‘)[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
根据中文提示有三处修改:
1、data-thread-key 我改为{{ site.url }}_{{page.title}}
2、data-title 我改为{{ page.title}}
3、data-url 我改为{{site.url}}
一般位置在_layouts/post.html
或者_layouts/default.html
原文:http://www.cnblogs.com/ypinchina/p/6351733.html