Skip to content

Commit

Permalink
Merge pull request #500 from theme-next/dev
Browse files Browse the repository at this point in the history
Added `disable_baidu_tranformation` option.
  • Loading branch information
ivan-nginx authored Dec 11, 2018
2 parents 92fac83 + c1783d5 commit e844044
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ post_edit:
# Misc Theme Settings
# ---------------------------------------------------------------

# Disable Baidu tranformation on mobile devices.
disable_baidu_tranformation: false

# Reduce padding / margin indents on devices with narrow width.
mobile_layout_economy: false

Expand Down
9 changes: 4 additions & 5 deletions layout/_partials/head/head.swig
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@
<link rel="stylesheet" media="all" href="{{ Han_uri }}">
{% endif %}


{# #238, Disable Baidu tranformation #}
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

{% if theme.disable_baidu_tranformation %}
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
{% endif %}

{% if theme.google_site_verification %}
<meta name="google-site-verification" content="{{ theme.google_site_verification }}" />
Expand Down

0 comments on commit e844044

Please sign in to comment.