Remove baidu_push and disable_baidu_transformation

This commit is contained in:
Mimi 2020-12-17 14:32:24 +08:00
parent e627bcb2cb
commit d65b03c3e1
4 changed files with 0 additions and 23 deletions

View File

@ -455,9 +455,6 @@ font:
# See: https://theme-next.js.org/docs/theme-settings/seo # 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. # 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) # Remember to set up your site-subtitle in Hexo `_config.yml` (e.g. subtitle: Subtitle)
index_with_subtitle: false index_with_subtitle: false
@ -481,9 +478,6 @@ yandex_site_verification:
# See: https://ziyuan.baidu.com/site # See: https://ziyuan.baidu.com/site
baidu_site_verification: 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 # Third Party Plugins & Services Settings

View File

@ -21,10 +21,6 @@
<link rel="manifest" href="{{ url_for(theme.favicon.android_manifest) }}"> <link rel="manifest" href="{{ url_for(theme.favicon.android_manifest) }}">
{%- endif %} {%- endif %}
{%- if theme.disable_baidu_transformation %}
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
{%- endif %}
{%- if theme.google_site_verification %} {%- if theme.google_site_verification %}
<meta name="google-site-verification" content="{{ theme.google_site_verification }}"> <meta name="google-site-verification" content="{{ theme.google_site_verification }}">
{%- endif %} {%- endif %}

View File

@ -1,11 +0,0 @@
{%- if theme.baidu_push %}
<script{{ pjax }}>
(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);
})();
</script>
{%- endif %}

View File

@ -1,5 +1,3 @@
{%- include 'baidu-push.njk' -%}
{%- include 'rating.njk' -%} {%- include 'rating.njk' -%}
{%- if theme.algolia_search.enable %} {%- if theme.algolia_search.enable %}