Skip to content

Commit bce5923

Browse files
committed
[v1.7] forget fixing duoshuo-share leaking at keynote.html & clean up
1 parent 1176424 commit bce5923

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

_layouts/keynote.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@ <h2 class="subheading">{{ page.subtitle }}</h2>
6161

6262
{% if site.duoshuo_share && site.duoshuo_username %}
6363
<!-- 多说 Share start -->
64-
</style>
6564
<div class="ds-share"
6665
style="text-align: right"
6766
data-thread-key="{{page.id}}" data-title="{{page.title}}"
6867
data-images="{{ site.url }}{{site.baseurl}}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}"
6968
data-content="{{ content | strip_html | truncate:80 }} | Hux Blog,@Hux黄玄 的个人博客"
7069
data-url="{{site.url}}{{site.baseurl}}{{page.url}}">
7170
<div class="ds-share-inline">
71+
<style>
72+
.ds-share-icons-16 {display:none;}
73+
</style>
7274
<ul class="ds-share-icons-16">
7375
<li data-toggle="ds-share-icons-more"><a class="ds-more" href="#">分享到:</a></li>
7476
<li><a class="ds-wechat flat" href="javascript:void(0);" data-service="wechat">微信</a></li>

_layouts/post.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ <h2 class="subheading">{{ page.subtitle }}</h2>
6464

6565
{% if site.duoshuo_share && site.duoshuo_username %}
6666
<!-- 多说 Share start -->
67-
</style>
6867
<div class="ds-share"
6968
style="text-align: right"
7069
data-thread-key="{{page.id}}"

sw.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,3 @@ self.addEventListener('fetch', event => {
8383
);
8484
}
8585
});
86-
87-
88-
89-
self.addEventListener('foreighfetch', event => {
90-
console.log("foreighfetch", event.request.url)
91-
})

0 commit comments

Comments
 (0)