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 c1cbd54 commit 79dd3aeCopy full SHA for 79dd3ae
layouts/_default/_markup/render-image.html
@@ -22,11 +22,11 @@
22
{{- $respSizes = slice $src.Width -}}
23
{{- end -}}
24
{{- range $imageType := $imageTypes -}}
25
- <source type="{{ $imageType }}" srcset="
+ <source type="image/{{ $imageType }}" srcset="
26
{{- with $respSizes -}}
27
{{- range $i, $e := . -}}
28
{{- if ge $src.Width . -}}
29
- {{- if $i }}, {{ end -}}{{- ($src.Resize (print . "x jpg " $filter) ).RelPermalink | absURL}} {{ . }}w
+ {{- if $i }}, {{ end -}}{{- ($src.Resize (print . "x " $imageType " " $filter) ).RelPermalink | absURL}} {{ . }}w
30
31
32
{{- end -}}, {{$src.Permalink }} {{printf "%dw" ($src.Width)}}" sizes="{{ $dataSzes }}" />
0 commit comments