Skip to content

Commit 3e645e1

Browse files
committed
add duoshuo
1 parent 333bace commit 3e645e1

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ JB :
8080
# Set 'provider' to false to turn commenting off globally.
8181
#
8282
comments :
83-
provider : disqus
84-
disqus :
83+
provider : duoshuo
84+
duoshuo :
8585
short_name : feenan
8686

8787
# Settings for analytics helper
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<ul class="ds-top-threads" data-range="weekly" data-num-items="5"></ul>
2+
<!--多说js加载开始,一个页面只需要加载一次 -->
3+
<script type="text/javascript">
4+
var duoshuoQuery = {short_name:"feenan.duoshuo.com"};
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加载结束,一个页面只需要加载一次 -->

0 commit comments

Comments
 (0)