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

@@ -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" >}}