diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 76e0ed28329..df96a3be2fb 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -2,10 +2,10 @@ environment: default # do not delete repo_name, used by websites-modules as context repo_name: "documentation" integrations_img_url: "https://static.datadoghq.com/static/images/logos/" -imgix: - header_jpg: "?ch=Width&fit=max&fm=jpg&auto=format&lossless=true" - header_png: "?ch=Width&fit=max&fm=png&auto=format&lossless=1" - header_gif: "?ch=Width,Save-Data&fm=gif" +img: + header_jpg: "?fit=max&fm=jpg&auto=format&lossless=true" + header_png: "?fit=max&fm=png&auto=format&lossless=1" + header_gif: "?fm=gif" jpg: "?fm=jpg&auto=format&lossless=true" png: "?fm=png&auto=format&lossless=1" gif: "" diff --git a/layouts/partials/img.html b/layouts/partials/img.html index 0055db8e5f5..7018bc23971 100644 --- a/layouts/partials/img.html +++ b/layouts/partials/img.html @@ -4,7 +4,7 @@ {{ if .img_param }} {{ .root.Scratch.Set "img_param" .img_param }} {{ else }} - {{ .root.Scratch.Set "img_param" "?ch=Width,DPR&fit=max" }} + {{ .root.Scratch.Set "img_param" "?fit=max" }} {{ end }} {{ $img_param := .root.Scratch.Get "img_param" }} diff --git a/layouts/partials/nav/left-nav.html b/layouts/partials/nav/left-nav.html index 3b6c63f7ad7..0572fe7331c 100644 --- a/layouts/partials/nav/left-nav.html +++ b/layouts/partials/nav/left-nav.html @@ -47,8 +47,8 @@ {{ $url_without_anchor = (index (split .URL "#") 0) }} {{ if .Pre }} - {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) ".png") "class" "static" "alt" "icon" "width" "21" "img_param" "?ch=Width,DPR&fit=max&auto=format&w=21") -}} - {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) "_p.png") "class" "hover" "alt" "icon" "width" "21" "img_param" "?ch=Width,DPR&fit=max&auto=format&w=21" "disable_lazy" "true") -}} + {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) ".png") "class" "static" "alt" "icon" "width" "21" "img_param" "?fit=max&auto=format&w=21") -}} + {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) "_p.png") "class" "hover" "alt" "icon" "width" "21" "img_param" "?fit=max&auto=format&w=21" "disable_lazy" "true") -}} {{ end }} {{ .Name }} @@ -60,8 +60,8 @@ {{ $url_without_anchor = (index (split .URL "#") 0) }} {{ if .Pre }} - {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) ".png") "class" "static" "alt" "icon" "width" "21" "img_param" "?ch=Width,DPR&fit=max&auto=format&w=21") -}} - {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) "_p.png") "class" "hover" "alt" "icon" "width" "21" "img_param" "?ch=Width,DPR&fit=max&auto=format&w=21" "disable_lazy" "true") -}} + {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) ".png") "class" "static" "alt" "icon" "width" "21" "img_param" "?fit=max&auto=format&w=21") -}} + {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) "_p.png") "class" "hover" "alt" "icon" "width" "21" "img_param" "?fit=max&auto=format&w=21" "disable_lazy" "true") -}} {{ end }} {{ .Name }} @@ -77,8 +77,8 @@ {{ $url_without_anchor = (index (split .URL "#") 0) }} {{ if .Pre }} - {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) ".png") "class" "static" "alt" "icon" "width" "21" "img_param" "?ch=Width,DPR&fit=max&auto=format&w=21") -}} - {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) "_p.png") "class" "hover" "alt" "icon" "width" "21" "img_param" "?ch=Width,DPR&fit=max&auto=format&w=21" "disable_lazy" "true") -}} + {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) ".png") "class" "static" "alt" "icon" "width" "21" "img_param" "?fit=max&auto=format&w=21") -}} + {{- partial "img.html" (dict "root" $ctx "src" (print "icons/" (.Pre) "_p.png") "class" "hover" "alt" "icon" "width" "21" "img_param" "?fit=max&auto=format&w=21" "disable_lazy" "true") -}} {{ end }} {{ .Name }} diff --git a/layouts/partials/platforms/platforms.html b/layouts/partials/platforms/platforms.html index 87a81d35e56..d759951868e 100644 --- a/layouts/partials/platforms/platforms.html +++ b/layouts/partials/platforms/platforms.html @@ -66,7 +66,7 @@