Skip to content

Commit d3296a6

Browse files
authored
fix
1 parent 30af326 commit d3296a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/_markup/render-image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
{{- if $responsiveImages -}}
1717
{{- $imageTypes := slice -}}
1818
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
19+
{{- $imageTypes = $imageTypes | append "avif" -}} // avif need the first
1920
{{- $imageTypes = $imageTypes | append "webp" -}}
20-
{{- $imageTypes = $imageTypes | append "avif" -}}
2121
{{- end -}}
2222
{{- if gt (index $respSizes 0) $src.Width -}}
2323
{{- $respSizes = slice $src.Width -}}

0 commit comments

Comments
 (0)