mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add js.Batch
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
This commit is contained in:
@@ -51,6 +51,7 @@ var (
|
||||
_ resource.Source = (*imageResource)(nil)
|
||||
_ resource.Cloner = (*imageResource)(nil)
|
||||
_ resource.NameNormalizedProvider = (*imageResource)(nil)
|
||||
_ targetPathProvider = (*imageResource)(nil)
|
||||
)
|
||||
|
||||
// imageResource represents an image resource.
|
||||
@@ -160,6 +161,10 @@ func (i *imageResource) Colors() ([]images.Color, error) {
|
||||
return i.dominantColors, nil
|
||||
}
|
||||
|
||||
func (i *imageResource) targetPath() string {
|
||||
return i.TargetPath()
|
||||
}
|
||||
|
||||
// Clone is for internal use.
|
||||
func (i *imageResource) Clone() resource.Resource {
|
||||
gr := i.baseResource.Clone().(baseResource)
|
||||
|
Reference in New Issue
Block a user