mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Add FileInfo to resources created with resources.Match etc.
Without it, image resize fails. See #6190
This commit is contained in:
@@ -89,6 +89,7 @@ func (c *Client) match(pattern string, firstOnly bool) (resource.Resources, erro
|
||||
meta := info.Meta()
|
||||
r, err := c.rs.New(resources.ResourceSourceDescriptor{
|
||||
LazyPublish: true,
|
||||
FileInfo: info,
|
||||
OpenReadSeekCloser: func() (hugio.ReadSeekCloser, error) {
|
||||
return meta.Open()
|
||||
},
|
||||
|
Reference in New Issue
Block a user