File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
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
20
19
{{- $imageTypes = $imageTypes | append "webp" -}}
21
20
{{- end -}}
22
21
{{- if gt (index $respSizes 0) $src.Width -}}
Original file line number Diff line number Diff line change 29
29
{{- end -}}
30
30
{{- range $imageType := $imageTypes -}}
31
31
< source type ="image/{{ $imageType }} " srcset ="
32
- {{- $compressedImage := printf "%s_1080x.%s " $Destination $imageType -}}
32
+ {{- $compressedImage := printf "%s_1080x.%s " $src $imageType -}}
33
33
{{- $cmSrc := $Page.Resources.GetMatch $compressedImage -}}
34
34
{{- if $cmSrc -}}
35
35
{{ $cmSrc.RelPermalink | absURL}} 1080w
You can’t perform that action at this time.
0 commit comments