Skip to content

Commit 2cba22a

Browse files
committed
add duoshuo
1 parent 1801701 commit 2cba22a

File tree

1 file changed

+11
-12
lines changed
  • _includes/JB/comments-providers

1 file changed

+11
-12
lines changed
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
<ul class="ds-recent-comments" data-num-items="10" data-show-avatars="1" data-show-time="1" data-show-admin="1" data-excerpt-length="70"></ul>
2-
<!--多说js加载开始,一个页面只需要加载一次 -->
1+
<div class="ds-thread"></div>
32
<script type="text/javascript">
4-
var duoshuoQuery = {short_name:"feenan"};
5-
(function() {
6-
var ds = document.createElement('script');
7-
ds.type = 'text/javascript';ds.async = true;
8-
ds.src = 'http://static.duoshuo.com/embed.js';
9-
ds.charset = 'UTF-8';
10-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
11-
})();
12-
</script>
13-
<!--多说js加载结束,一个页面只需要加载一次 -->
3+
var duoshuoQuery = {short_name:'{{ site.JB.comments.duoshuo.short_name }}'};
4+
(function() {
5+
var ds = document.createElement('script');
6+
ds.type = 'text/javascript';ds.async = true;
7+
ds.src = 'http://static.duoshuo.com/embed.js';
8+
ds.charset = 'UTF-8';
9+
(document.getElementsByTagName('head')[0]
10+
|| document.getElementsByTagName('body')[0]).appendChild(ds);
11+
})();
12+
</script>

0 commit comments

Comments
 (0)