This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 93
93
num_posts : 5
94
94
width : 580
95
95
colorscheme : light
96
+ weibo :
97
+ appkey : 123
98
+ ralateuid : 123
96
99
97
100
# Settings for analytics helper
98
101
# Set 'provider' to the analytics provider you want to use.
Original file line number Diff line number Diff line change 9
9
{% include JB/comments-providers/intensedebate %}
10
10
{% when "facebook" %}
11
11
{% include JB/comments-providers/facebook %}
12
+ {% when "weibo" %}
13
+ {% include JB/comments-providers/weibo %}
12
14
{% when "custom" %}
13
15
{% include custom/comments %}
14
16
{% endcase %}
15
17
16
- {% endif %}
18
+ {% endif %}
Original file line number Diff line number Diff line change
1
+ <script type="text/javascript">
2
+ (function(){
3
+ var pageUrl = encodeURIComponent("{{site.production_url}}{{page.permalink}}");
4
+ var url = "http://widget.weibo.com/distribution/comments.php?width=0&url="+pageUrl+"&ralateuid={{ site.JB.commets.weibo.ralateuid}}&appkey={{ site.JB.comments.weibo.appkey }}&dpc=1";
5
+ document.write('<iframe id="WBCommentFrame" src="' + url + '" scrolling="no" frameborder="0" style="width:100%"></iframe>');
6
+ })();
7
+ </script>
8
+ <script src="http://tjs.sjs.sinajs.cn/open/widget/js/widget/comment.js" type="text/javascript" charset="utf-8"></script>
9
+ <script type="text/javascript">
10
+ window.WBComment.init({
11
+ "id": "WBCommentFrame"
12
+ });
13
+ </script>
You can’t perform that action at this time.
0 commit comments