From 78ec862c6b35d61acbe14b571c621fbf3fe57ce5 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Fri, 7 Apr 2023 23:07:53 +0800 Subject: [PATCH] feat: remove AddThis share --- README.md | 16 ---------------- _config.yml | 8 -------- layout/_partial/article.ejs | 1 - layout/_partial/post/share.ejs | 18 ------------------ source/css/_partial/article.styl | 5 ----- 5 files changed, 48 deletions(-) delete mode 100644 layout/_partial/post/share.ejs diff --git a/README.md b/README.md index c6b36bce..b3eada2d 100644 --- a/README.md +++ b/README.md @@ -47,14 +47,6 @@ twitter: show_replies: false tweet_count: 5 -addthis: - enable: true - pubid: - facebook: true - twitter: true - google: true - pinterest: true - fancybox: true google_analytics: @@ -68,13 +60,6 @@ rss: - **username** - Twitter username - **show_replies** - Enable displaying replies - **tweet_count** - Tweets display in widget -- **addthis** - Share buttons at the bottom of articles (Powered by [AddThis]) - - **enable** - Enable share buttons - - **pubid** - Profile ID of [AddThis] - - **facebook** - Enable Facebook button - - **twitter** - Enable Twitter button - - **google** - Enable Google+ button - - **pinterest** - Enable Pinterest button - **fancybox** - Enable [Fancybox] - **google_analytics** - Google Analytics ID - **rss** - RSS subscription link (change if using Feedburner) @@ -117,5 +102,4 @@ link: http://www.google.com/ ![Fancybox](https://raw.githubusercontent.com/hexojs/hexo-theme-light/site/source/screenshots/fancybox.gif) [Hexo]: http://zespia.tw/hexo/ -[AddThis]: https://www.addthis.com [Fancybox]: http://fancyapps.com/fancybox/ diff --git a/_config.yml b/_config.yml index 18c113f5..2db1e59e 100644 --- a/_config.yml +++ b/_config.yml @@ -14,14 +14,6 @@ twitter: show_replies: false tweet_count: 5 -addthis: - enable: true - pubid: - facebook: true - twitter: true - google: true - pinterest: true - fancybox: true google_analytics: diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 0f51789b..efc2255e 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -32,7 +32,6 @@ <% } else { %> <%- partial('post/category') %> <%- partial('post/tag') %> - <%- partial('post/share') %> <% } %>
diff --git a/layout/_partial/post/share.ejs b/layout/_partial/post/share.ejs deleted file mode 100644 index 76957137..00000000 --- a/layout/_partial/post/share.ejs +++ /dev/null @@ -1,18 +0,0 @@ -<% if (theme.addthis.enable){ %> -
- <% if (theme.addthis.facebook){ %> - - <% } %> - <% if (theme.addthis.twitter){ %> - - <% } %> - <% if (theme.addthis.google){ %> - - <% } %> - <% if (theme.addthis.pinterest){ %> - - <% } %> - -
- -<% } %> \ No newline at end of file diff --git a/source/css/_partial/article.styl b/source/css/_partial/article.styl index 17e2654b..46889a76 100644 --- a/source/css/_partial/article.styl +++ b/source/css/_partial/article.styl @@ -305,8 +305,3 @@ article content '\f02b' top 3px left 2px - - .addthis - margin-top 15px - iframe - margin-top 0