Skip to content

Commit 79dd3ae

Browse files
authored
Update render-image.html
1 parent c1cbd54 commit 79dd3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/_default/_markup/render-image.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
{{- $respSizes = slice $src.Width -}}
2323
{{- end -}}
2424
{{- range $imageType := $imageTypes -}}
25-
<source type="{{ $imageType }}" srcset="
25+
<source type="image/{{ $imageType }}" srcset="
2626
{{- with $respSizes -}}
2727
{{- range $i, $e := . -}}
2828
{{- if ge $src.Width . -}}
29-
{{- if $i }}, {{ end -}}{{- ($src.Resize (print . "x jpg " $filter) ).RelPermalink | absURL}} {{ . }}w
29+
{{- if $i }}, {{ end -}}{{- ($src.Resize (print . "x " $imageType " " $filter) ).RelPermalink | absURL}} {{ . }}w
3030
{{- end -}}
3131
{{- end -}}
3232
{{- end -}}, {{$src.Permalink }} {{printf "%dw" ($src.Width)}}" sizes="{{ $dataSzes }}" />

0 commit comments

Comments
 (0)