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 47f3593 commit 76aad63Copy full SHA for 76aad63
layouts/_default/_markup/render-image.html
@@ -13,10 +13,11 @@
13
14
{{ with $src := .Page.Resources.GetMatch .Destination }}
15
{{- if $responsiveImages -}}
16
- {{- $imageTypes := slice $src.MediaType.SubType -}}
+ {{- $imageTypes := slice -}}
17
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
18
{{- $imageTypes = $imageTypes | append "webp" -}}
19
{{- end -}}
20
+ {{- $imageTypes = $imageTypes | append $src.MediaType.SubType -}}
21
{{- if gt (index $respSizes 0) $src.Width -}}
22
{{- $respSizes = slice $src.Width -}}
23
0 commit comments