Skip to content

Commit a865221

Browse files
committed
[v.1.7.1] delete duoshuo-related code
1 parent 59c4d99 commit a865221

File tree

2 files changed

+0
-120
lines changed

2 files changed

+0
-120
lines changed

_layouts/keynote.html

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

6969
<hr style="visibility: hidden;">
7070

71-
{% if site.duoshuo_share && site.duoshuo_username %}
72-
<!-- 多说 Share start -->
73-
<div class="ds-share"
74-
style="text-align: right"
75-
data-thread-key="{{page.id}}" data-title="{{page.title}}"
76-
data-images="{{ site.url }}{{site.baseurl}}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}"
77-
data-content="{{ content | strip_html | truncate:80 }} | Hux Blog,@Hux黄玄 的个人博客"
78-
data-url="{{site.url}}{{site.baseurl}}{{page.url}}">
79-
<div class="ds-share-inline">
80-
<style>
81-
.ds-share-icons-16 {display:none;}
82-
</style>
83-
<ul class="ds-share-icons-16">
84-
<li data-toggle="ds-share-icons-more"><a class="ds-more" href="#">分享到:</a></li>
85-
<li><a class="ds-wechat flat" href="javascript:void(0);" data-service="wechat">微信</a></li>
86-
<li><a class="ds-weibo flat" href="javascript:void(0);" data-service="weibo">微博</a></li>
87-
<li><a class="ds-douban flat" href="javascript:void(0);" data-service="douban">豆瓣</a></li>
88-
</ul>
89-
<div class="ds-share-icons-more">
90-
</div>
91-
</div>
92-
<hr>
93-
</div>
94-
<!-- 多少 Share end-->
95-
{% endif %}
96-
97-
9871
<ul class="pager">
9972
{% if page.previous.url %}
10073
<li class="previous">
@@ -114,19 +87,6 @@ <h2 class="subheading">{{ page.subtitle }}</h2>
11487
{% endif %}
11588
</ul>
11689

117-
118-
{% if site.duoshuo_username %}
119-
<!-- 多说评论框 start -->
120-
<div class="comment">
121-
<div class="ds-thread"
122-
data-thread-key="{{page.id}}"
123-
data-title="{{page.title}}"
124-
data-url="{{site.url}}{{site.baseurl}}{{page.url}}" >
125-
</div>
126-
</div>
127-
<!-- 多说评论框 end -->
128-
{% endif %}
129-
13090
{% if site.disqus_username %}
13191
<!-- disqus 评论框 start -->
13292
<div class="comment">
@@ -199,26 +159,6 @@ <h5>FRIENDS</h5>
199159
resize();
200160
</script>
201161

202-
{% if site.duoshuo_username %}
203-
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
204-
<script type="text/javascript">
205-
// dynamic User by Hux
206-
var _user = '{{site.duoshuo_username}}';
207-
208-
// duoshuo comment query.
209-
var duoshuoQuery = {short_name: _user };
210-
(function() {
211-
var ds = document.createElement('script');
212-
ds.type = 'text/javascript';ds.async = true;
213-
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
214-
ds.charset = 'UTF-8';
215-
(document.getElementsByTagName('head')[0]
216-
|| document.getElementsByTagName('body')[0]).appendChild(ds);
217-
})();
218-
</script>
219-
<!-- 多说公共JS代码 end -->
220-
{% endif %}
221-
222162

223163
{% if site.disqus_username %}
224164
<!-- disqus 公共JS代码 start (一个网页只需插入一次) -->

_layouts/post.html

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -62,34 +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-
92-
9365
<ul class="pager">
9466
{% if page.previous.url %}
9567
<li class="previous">
@@ -110,18 +82,6 @@ <h2 class="subheading">{{ page.subtitle }}</h2>
11082
</ul>
11183

11284

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-
12585
{% if site.disqus_username %}
12686
<!-- disqus 评论框 start -->
12787
<div class="comment">
@@ -193,26 +153,6 @@ <h5>FRIENDS</h5>
193153
</article>
194154

195155

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-
216156
{% if site.netease_comment %}
217157
<!-- 网易云跟帖JS代码 start -->
218158
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>

0 commit comments

Comments
 (0)