diff --git a/_config.yml b/_config.yml index e1e5c41..99db61c 100644 --- a/_config.yml +++ b/_config.yml @@ -455,9 +455,6 @@ font: # See: https://theme-next.js.org/docs/theme-settings/seo # --------------------------------------------------------------- -# Disable Baidu transformation on mobile devices. -disable_baidu_transformation: false - # If true, site-subtitle will be added to index page. # Remember to set up your site-subtitle in Hexo `_config.yml` (e.g. subtitle: Subtitle) index_with_subtitle: false @@ -481,9 +478,6 @@ yandex_site_verification: # See: https://ziyuan.baidu.com/site baidu_site_verification: -# Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO. -baidu_push: false - # --------------------------------------------------------------- # Third Party Plugins & Services Settings diff --git a/layout/_partials/head/head.njk b/layout/_partials/head/head.njk index cecbcc3..4aed5d7 100644 --- a/layout/_partials/head/head.njk +++ b/layout/_partials/head/head.njk @@ -21,10 +21,6 @@ {%- endif %} -{%- if theme.disable_baidu_transformation %} - - -{%- endif %} {%- if theme.google_site_verification %} {%- endif %} diff --git a/layout/_third-party/baidu-push.njk b/layout/_third-party/baidu-push.njk deleted file mode 100644 index 3b44a0d..0000000 --- a/layout/_third-party/baidu-push.njk +++ /dev/null @@ -1,11 +0,0 @@ -{%- if theme.baidu_push %} - - (function(){ - var bp = document.createElement('script'); - var curProtocol = window.location.protocol.split(':')[0]; - bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js'; - var s = document.getElementsByTagName("script")[0]; - s.parentNode.insertBefore(bp, s); - })(); - -{%- endif %} diff --git a/layout/_third-party/index.njk b/layout/_third-party/index.njk index 9c6db82..2739dc1 100644 --- a/layout/_third-party/index.njk +++ b/layout/_third-party/index.njk @@ -1,5 +1,3 @@ -{%- include 'baidu-push.njk' -%} - {%- include 'rating.njk' -%} {%- if theme.algolia_search.enable %}