Skip to content

Commit 76aad63

Browse files
authored
Update render-image.html
1 parent 47f3593 commit 76aad63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/_default/_markup/render-image.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414
{{ with $src := .Page.Resources.GetMatch .Destination }}
1515
{{- if $responsiveImages -}}
16-
{{- $imageTypes := slice $src.MediaType.SubType -}}
16+
{{- $imageTypes := slice -}}
1717
{{- if and hugo.IsExtended (ne $src.MediaType.Type "image/webp") -}}
1818
{{- $imageTypes = $imageTypes | append "webp" -}}
1919
{{- end -}}
20+
{{- $imageTypes = $imageTypes | append $src.MediaType.SubType -}}
2021
{{- if gt (index $respSizes 0) $src.Width -}}
2122
{{- $respSizes = slice $src.Width -}}
2223
{{- end -}}

0 commit comments

Comments
 (0)