We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30af326 commit d3296a6Copy full SHA for d3296a6
layouts/_default/_markup/render-image.html
@@ -16,8 +16,8 @@
16
{{- if $responsiveImages -}}
17
{{- $imageTypes := slice -}}
18
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
19
+ {{- $imageTypes = $imageTypes | append "avif" -}} // avif need the first
20
{{- $imageTypes = $imageTypes | append "webp" -}}
- {{- $imageTypes = $imageTypes | append "avif" -}}
21
{{- end -}}
22
{{- if gt (index $respSizes 0) $src.Width -}}
23
{{- $respSizes = slice $src.Width -}}
0 commit comments