From fd69848f5e42642a7c619da296c9cfe4956c419d Mon Sep 17 00:00:00 2001 From: StevenJoeZhang <1119186082@qq.com> Date: Thu, 11 Jul 2019 14:10:16 +0800 Subject: [PATCH] Remove baidushare --- _config.yml | 5 -- layout/_layout.swig | 6 --- layout/_macro/post.swig | 9 +--- layout/_partials/share/baidushare.swig | 57 -------------------- source/css/_common/components/post/post.styl | 2 +- 5 files changed, 3 insertions(+), 76 deletions(-) delete mode 100644 layout/_partials/share/baidushare.swig diff --git a/_config.yml b/_config.yml index 65dc58ffc0..5afd967125 100644 --- a/_config.yml +++ b/_config.yml @@ -660,11 +660,6 @@ gitalk: # See: https://theme-next.org/docs/third-party-services/content-sharing-services # --------------------------------------------------------------- -# Baidu Share (does not support https). -baidushare: - #type: button - #type: slide - # AddThis Share. See: https://www.addthis.com # Go to https://www.addthis.com/dashboard to customize your tools. add_this_id: diff --git a/layout/_layout.swig b/layout/_layout.swig index 4c3e6d585b..44a9fb8f72 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -81,12 +81,6 @@ {% endif %} - {% if theme.baidushare and theme.baidushare.type === "slide" %} -
- {% include '_partials/share/baidushare.swig' %} -
- {% endif %} - {% if theme.add_this_id %}
{% include '_partials/share/add-this.swig' %} diff --git a/layout/_macro/post.swig b/layout/_macro/post.swig index b1a14a8845..a6ff586fc0 100644 --- a/layout/_macro/post.swig +++ b/layout/_macro/post.swig @@ -366,7 +366,7 @@ {% endif %} {% if not is_index %} - {% if theme.rating.enable or (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) or theme.likely.enable or (theme.needmoreshare2.enable and theme.needmoreshare2.postbottom.enable) or (theme.baidushare and theme.baidushare.type === "button") %} + {% if theme.rating.enable or (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) or theme.likely.enable or (theme.needmoreshare2.enable and theme.needmoreshare2.postbottom.enable) %}
{% if theme.rating.enable %}
@@ -393,7 +393,7 @@
{% endif %} - {% if theme.likely.enable or (theme.needmoreshare2.enable and theme.needmoreshare2.postbottom.enable) or (theme.baidushare.type === "button") %} + {% if theme.likely.enable or (theme.needmoreshare2.enable and theme.needmoreshare2.postbottom.enable) %} {% if theme.rating.enable or (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %} {% endif %} @@ -410,11 +410,6 @@
{% endif %} - {% if theme.baidushare.type === "button" %} -
- {% include '../_partials/share/baidushare.swig' %} -
- {% endif %}
{% endif %} diff --git a/layout/_partials/share/baidushare.swig b/layout/_partials/share/baidushare.swig deleted file mode 100644 index d30f6a464b..0000000000 --- a/layout/_partials/share/baidushare.swig +++ /dev/null @@ -1,57 +0,0 @@ -{% if theme.baidushare.type === "button" %} -
- - - - - - - - - - -
- -{% elif theme.baidushare.type === "slide" %} - -{% endif %} - diff --git a/source/css/_common/components/post/post.styl b/source/css/_common/components/post/post.styl index 27e270e3ee..022d06b9e0 100644 --- a/source/css/_common/components/post/post.styl +++ b/source/css/_common/components/post/post.styl @@ -56,6 +56,6 @@ @import "post-gallery"; @import "post-reward" if hexo-config('reward_settings.enable'); @import "post-copyright" if hexo-config('creative_commons.post'); -@import "post-widgets" if (hexo-config('facebook_sdk.enable') and hexo-config('facebook_sdk.like_button')) or (hexo-config('vkontakte_api.enable') and hexo-config('vkontakte_api.like')) or hexo-config('rating.enable') or hexo-config('likely.enable') or (hexo-config('needmoreshare2.enable') and hexo-config('needmoreshare2.postbottom.enable')) or hexo-config('baidushare'); +@import "post-widgets" if (hexo-config('facebook_sdk.enable') and hexo-config('facebook_sdk.like_button')) or (hexo-config('vkontakte_api.enable') and hexo-config('vkontakte_api.like')) or hexo-config('rating.enable') or hexo-config('likely.enable') or (hexo-config('needmoreshare2.enable') and hexo-config('needmoreshare2.postbottom.enable')); @import "post-rtl"; @import "post-reading_progress" if hexo-config('reading_progress.enable');