mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Remove baidu_push and disable_baidu_transformation
This commit is contained in:
parent
e627bcb2cb
commit
d65b03c3e1
@ -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
|
||||||
|
|||||||
@ -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 %}
|
||||||
|
|||||||
11
layout/_third-party/baidu-push.njk
vendored
11
layout/_third-party/baidu-push.njk
vendored
@ -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 %}
|
|
||||||
2
layout/_third-party/index.njk
vendored
2
layout/_third-party/index.njk
vendored
@ -1,5 +1,3 @@
|
|||||||
{%- include 'baidu-push.njk' -%}
|
|
||||||
|
|
||||||
{%- include 'rating.njk' -%}
|
{%- include 'rating.njk' -%}
|
||||||
|
|
||||||
{%- if theme.algolia_search.enable %}
|
{%- if theme.algolia_search.enable %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user