fix: use IsImageResourceWithMeta to check whether image has width / height attributes (#1285)

This commit is contained in:
Jimmy
2026-03-05 09:23:47 +01:00
committed by GitHub
parent 22edce91ab
commit 3dae60ac7a
+1 -1
View File
@@ -33,7 +33,7 @@
{{ end }} {{ end }}
{{ with $resource }} {{ with $resource }}
{{ if reflect.IsImageResourceProcessable . }} {{ if reflect.IsImageResourceWithMeta . }}
{{ $result = dict {{ $result = dict
"Resource" $resource "Resource" $resource
"Permalink" $permalink "Permalink" $permalink