feat(compatibility): add config for compatibility (Polyfill.io and object-fit-images)

This commit is contained in:
Dillon
2020-05-15 16:32:36 +08:00
parent 3fba585d79
commit c5a0ec61c9
13 changed files with 108 additions and 55 deletions

View File

@@ -634,6 +634,13 @@ Please open the code block below to view the complete sample configuration :(far
# "assets/data/cdn/"
data = ""
# {{< version 0.2.8 >}} Compatibility config
[params.compatibility]
# whether to use Polyfill.io to be compatible with older browsers
polyfill = false
# whether to use object-fit-images to be compatible with older browsers
objectFit = false
# Markup related config in Hugo
[markup]
# {{< link "https://gohugo.io/content-management/syntax-highlighting" "Syntax Highlighting" >}}

View File

@@ -639,6 +639,13 @@ Please open the code block below to view the complete sample configuration :(far
# "assets/data/cdn/"
data = ""
# {{< version 0.2.8 >}} Compatibility config
[params.compatibility]
# whether to use Polyfill.io to be compatible with older browsers
polyfill = false
# whether to use object-fit-images to be compatible with older browsers
objectFit = false
# Markup related config in Hugo
[markup]
# {{< link "https://gohugo.io/content-management/syntax-highlighting" "Syntax Highlighting" >}}

View File

@@ -637,6 +637,13 @@ hugo
# "assets/data/cdn/"
data = ""
# {{< version 0.2.8 >}} 兼容性设置
[params.compatibility]
# 是否使用 Polyfill.io 来兼容旧式浏览器
polyfill = false
# 是否使用 object-fit-images 来兼容旧式浏览器
objectFit = false
# Hugo 解析文档的配置
[markup]
# {{< link "https://gohugo.io/content-management/syntax-highlighting" "语法高亮设置" >}}