mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 23:38:53 +00:00
Update tpl/reflect/reflect.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -56,7 +56,7 @@ func (ns *Namespace) IsSite(v any) bool {
|
||||
return ok
|
||||
}
|
||||
|
||||
// IsImageResource reports whether v is an Hugo Image Resource.
|
||||
// IsImageResource reports whether v is a Hugo Image Resource.
|
||||
// If this returns true, you may process it and get information about its width, height, etc.
|
||||
func (ns *Namespace) IsImageResource(v any) bool {
|
||||
return resources.IsImage(v)
|
||||
|
||||
Reference in New Issue
Block a user