mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00: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