diff --git a/_config.yml b/_config.yml index ac2e4ac1d9..0f6e8084d5 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/layout/_partials/head/head.swig b/layout/_partials/head/head.swig index 17782fd1ce..8ac99cc4f4 100644 --- a/layout/_partials/head/head.swig +++ b/layout/_partials/head/head.swig @@ -35,11 +35,10 @@ {% endif %} - -{# #238, Disable Baidu tranformation #} - - - +{% if theme.disable_baidu_tranformation %} + + +{% endif %} {% if theme.google_site_verification %}