mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
resources: Fix spelling in method name
This commit is contained in:
parent
d297c8e1b5
commit
be8e2de597
2 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ func (c *ImageCache) getOrCreate(
|
||||||
rp := img.getResourcePaths()
|
rp := img.getResourcePaths()
|
||||||
rp.relTargetDirFile.file = relTarget.file
|
rp.relTargetDirFile.file = relTarget.file
|
||||||
img.setSourceFilename(info.Name)
|
img.setSourceFilename(info.Name)
|
||||||
img.setSourfeFilenameIsHash(true)
|
img.setSourceFilenameIsHash(true)
|
||||||
img.setMediaType(conf.TargetFormat.MediaType())
|
img.setMediaType(conf.TargetFormat.MediaType())
|
||||||
|
|
||||||
return img.InitConfig(r)
|
return img.InitConfig(r)
|
||||||
|
|
|
@ -215,7 +215,7 @@ func (d dirFile) path() string {
|
||||||
type fileInfo interface {
|
type fileInfo interface {
|
||||||
getSourceFilename() string
|
getSourceFilename() string
|
||||||
setSourceFilename(string)
|
setSourceFilename(string)
|
||||||
setSourfeFilenameIsHash(bool)
|
setSourceFilenameIsHash(bool)
|
||||||
setSourceFs(afero.Fs)
|
setSourceFs(afero.Fs)
|
||||||
getFileInfo() hugofs.FileMetaInfo
|
getFileInfo() hugofs.FileMetaInfo
|
||||||
hash() (string, error)
|
hash() (string, error)
|
||||||
|
@ -645,7 +645,7 @@ func (fi *resourceFileInfo) setSourceFilename(s string) {
|
||||||
fi.sourceFilename = s
|
fi.sourceFilename = s
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fi *resourceFileInfo) setSourfeFilenameIsHash(b bool) {
|
func (fi *resourceFileInfo) setSourceFilenameIsHash(b bool) {
|
||||||
fi.sourceFilenameIsHash = b
|
fi.sourceFilenameIsHash = b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue