Skip to content

Commit 56fd4ff

Browse files
committed
[v1.7.1] delete Duoshuo related code
1 parent 6ac16f9 commit 56fd4ff

File tree

3 files changed

+0
-103
lines changed

3 files changed

+0
-103
lines changed

_config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ disqus_username: hux
5353
# Netease setttings
5454
netease_comment: false
5555

56-
# Duoshuo settings
57-
duoshuo_username: huxblog
58-
# Share component is depend on Comment so we can NOT use share only.
59-
duoshuo_share: true # set to false if you want to use Comment without Sharing
60-
61-
6256

6357

6458
# Analytics settings

_layouts/post.html

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,6 @@ <h2 class="subheading">{{ page.subtitle }}</h2>
6262

6363
<hr style="visibility: hidden;">
6464

65-
{% if site.duoshuo_share && site.duoshuo_username %}
66-
<!-- 多说 Share start -->
67-
<div class="ds-share"
68-
style="text-align: right"
69-
data-thread-key="{{page.id}}"
70-
data-title="{{page.title}}"
71-
data-url="{{site.url}}{{site.baseurl}}{{page.url}}"
72-
data-images="{{ site.url }}{{site.baseurl}}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}"
73-
data-content="{{ content | strip_html | truncate:80 }} | {{ site.SEOTitle }} " >
74-
<div class="ds-share-inline">
75-
<style>
76-
.ds-share-icons-16 {display:none;}
77-
</style>
78-
<ul class="ds-share-icons-16">
79-
<li data-toggle="ds-share-icons-more"><a class="ds-more" href="#">分享到:</a></li>
80-
<li><a class="ds-wechat flat" href="javascript:void(0);" data-service="wechat">微信</a></li>
81-
<li><a class="ds-weibo flat" href="javascript:void(0);" data-service="weibo">微博</a></li>
82-
<li><a class="ds-douban flat" href="javascript:void(0);" data-service="douban">豆瓣</a></li>
83-
</ul>
84-
<div class="ds-share-icons-more">
85-
</div>
86-
</div>
87-
<hr>
88-
</div>
89-
<!-- 多说 Share end-->
90-
{% endif %}
91-
9265

9366
<ul class="pager">
9467
{% if page.previous.url %}
@@ -110,18 +83,6 @@ <h2 class="subheading">{{ page.subtitle }}</h2>
11083
</ul>
11184

11285

113-
{% if site.duoshuo_username %}
114-
<!-- 多说评论框 start -->
115-
<div class="comment">
116-
<div class="ds-thread"
117-
data-thread-key="{{page.id}}"
118-
data-title="{{page.title}}"
119-
data-url="{{site.url}}{{site.baseurl}}{{page.url}}" >
120-
</div>
121-
</div>
122-
<!-- 多说评论框 end -->
123-
{% endif %}
124-
12586
{% if site.disqus_username %}
12687
<!-- disqus 评论框 start -->
12788
<div class="comment">
@@ -193,26 +154,6 @@ <h5>FRIENDS</h5>
193154
</article>
194155

195156

196-
{% if site.duoshuo_username %}
197-
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
198-
<script type="text/javascript">
199-
// dynamic User by Hux
200-
var _user = '{{site.duoshuo_username}}';
201-
202-
// duoshuo comment query.
203-
var duoshuoQuery = {short_name: _user };
204-
(function() {
205-
var ds = document.createElement('script');
206-
ds.type = 'text/javascript';ds.async = true;
207-
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
208-
ds.charset = 'UTF-8';
209-
(document.getElementsByTagName('head')[0]
210-
|| document.getElementsByTagName('body')[0]).appendChild(ds);
211-
})();
212-
</script>
213-
<!-- 多说公共JS代码 end -->
214-
{% endif %}
215-
216157
{% if site.netease_comment %}
217158
<!-- 网易云跟帖JS代码 start -->
218159
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>

about.html

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -64,44 +64,6 @@
6464
</script>
6565

6666

67-
68-
{% if site.duoshuo_username %}
69-
<!-- 多说评论框 start -->
70-
<div class="comment">
71-
<!-- This id is used for indexing my loss comments forcedly -->
72-
<div class="ds-thread"
73-
{% if site.duoshuo_username == "huxblog" %}
74-
data-thread-id="1187623191091085319"
75-
{% else %}
76-
<!-- U can just use this key generated to index comments at page about -->
77-
data-thread-key="{{site.duoshuo_username}}/about"
78-
{% endif %}
79-
80-
data-title="{{page.title}}"
81-
data-url="{{site.url}}/about/"></div>
82-
</div>
83-
<!-- 多说评论框 end -->
84-
85-
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
86-
<script type="text/javascript">
87-
// dynamic User hacking by Hux
88-
var _user = '{{site.duoshuo_username}}';
89-
90-
// duoshuo comment query.
91-
var duoshuoQuery = {short_name: _user };
92-
(function() {
93-
var ds = document.createElement('script');
94-
ds.type = 'text/javascript';ds.async = true;
95-
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
96-
ds.charset = 'UTF-8';
97-
(document.getElementsByTagName('head')[0]
98-
|| document.getElementsByTagName('body')[0]).appendChild(ds);
99-
})();
100-
</script>
101-
<!-- 多说公共JS代码 end -->
102-
{% endif %}
103-
104-
10567
{% if site.disqus_username %}
10668
<!-- disqus 评论框 start -->
10769
<div class="comment">

0 commit comments

Comments
 (0)