Skip to content

Commit 4fbe428

Browse files
authored
debug
1 parent 0126d85 commit 4fbe428

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

layouts/_default/_markup/render-image.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
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
2019
{{- $imageTypes = $imageTypes | append "webp" -}}
2120
{{- end -}}
2221
{{- if gt (index $respSizes 0) $src.Width -}}

layouts/shortcodes/figure.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{- end -}}
3030
{{- range $imageType := $imageTypes -}}
3131
<source type="image/{{ $imageType }}" srcset="
32-
{{- $compressedImage := printf "%s_1080x.%s" $Destination $imageType -}}
32+
{{- $compressedImage := printf "%s_1080x.%s" $src $imageType -}}
3333
{{- $cmSrc := $Page.Resources.GetMatch $compressedImage -}}
3434
{{- if $cmSrc -}}
3535
{{ $cmSrc.RelPermalink | absURL}} 1080w

0 commit comments

Comments
 (0)