fix: use IsImageResourceWithMeta to check whether image has width / height attributes (#1285)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user