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 be62c73 commit 30af326Copy full SHA for 30af326
layouts/_default/_markup/render-image.html
@@ -31,14 +31,14 @@
31
{{ $cmSrc.RelPermalink | absURL}} 1080w
32
{{- else -}}
33
// hugo not support avif format
34
- {{ if eq $imageType "avif" }}
35
- {{- with $respSizes -}}
36
- {{- range $i, $e := . -}}
37
- {{- if ge $src.Width . -}}
38
- {{- if $i }}, {{ end -}}{{- ($src.Resize (print . "x " $imageType " " $filter) ).RelPermalink | absURL}} {{ . }}w
+ {{ if ne $imageType "avif" }}
+ {{- with $respSizes -}}
+ {{- range $i, $e := . -}}
+ {{- if ge $src.Width . -}}
+ {{- if $i }}, {{ end -}}{{- ($src.Resize (print . "x " $imageType " " $filter) ).RelPermalink | absURL}} {{ . }}w
39
+ {{- end -}}
40
{{- end -}}
41
- {{- end -}}
42
{{ end }}
43
{{- end -}}" sizes="{{ $dataSizes }}" />
44
0 commit comments