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 4f80b36 commit 16ce8acCopy full SHA for 16ce8ac
layouts/_default/_markup/render-image.html
@@ -16,7 +16,7 @@
16
<picture>
17
{{- $imageTypes := slice $src.MediaType.SubType -}}
18
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
19
- {{- $imageTypes = append $imageTypes "webp" -}}
+ {{- $imageTypes = $imageTypes | append "webp" -}}
20
{{- end -}}
21
{{- if gt (index $respSizes 0) $src.Width -}}
22
{{- $respSizes = slice $src.Width -}}
0 commit comments