File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
{{- if $responsiveImages -}}
17
17
{{- $imageTypes := slice -}}
18
18
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
19
+ {{- $imageTypes = $imageTypes | append "avif" -}} <!-- avif need the first -->
19
20
{{- $imageTypes = $imageTypes | append "webp" -}}
20
21
{{- end -}}
21
22
{{- if gt (index $respSizes 0) $src.Width -}}
29
30
{{- if $cmSrc -}}
30
31
{{ $cmSrc.RelPermalink | absURL}} 1080w
31
32
{{- else -}}
32
- // hugo not support avif format
33
+ <!-- hugo not support avif format -->
33
34
{{ if ne $imageType "avif" }}
34
35
{{- with $respSizes -}}
35
36
{{- range $i, $e := . -}}
Original file line number Diff line number Diff line change 26
26
{{- if $responsiveImages -}}
27
27
{{- $imageTypes := slice -}}
28
28
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
29
- {{- $imageTypes = $imageTypes | append "avif" -}} // avif need the first
29
+ {{- $imageTypes = $imageTypes | append "avif" -}} <!-- avif need the first -->
30
30
{{- $imageTypes = $imageTypes | append "webp" -}}
31
31
{{- end -}}
32
32
{{- range $imageType := $imageTypes -}}
36
36
{{- if $cmSrc -}}
37
37
{{ $cmSrc.RelPermalink | absURL}} 1080w
38
38
{{- else -}}
39
- // hugo not support avif format
39
+ <!-- hugo not support avif format -->
40
40
{{ if ne $imageType "avif" }}
41
41
{{- with $respSizes -}}
42
42
{{- range $i, $e := . -}}
You can’t perform that action at this time.
0 commit comments