Skip to content

Commit 30af326

Browse files
authored
fix
1 parent be62c73 commit 30af326

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

layouts/_default/_markup/render-image.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
{{ $cmSrc.RelPermalink | absURL}} 1080w
3232
{{- else -}}
3333
// 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
34+
{{ if ne $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
39+
{{- end -}}
3940
{{- end -}}
4041
{{- end -}}
41-
{{- end -}}
4242
{{ end }}
4343
{{- end -}}" sizes="{{ $dataSizes }}" />
4444
{{- end -}}

0 commit comments

Comments
 (0)