mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
resources: Fix spelling in method name
This commit is contained in:
@@ -106,7 +106,7 @@ func (c *ImageCache) getOrCreate(
|
||||
rp := img.getResourcePaths()
|
||||
rp.relTargetDirFile.file = relTarget.file
|
||||
img.setSourceFilename(info.Name)
|
||||
img.setSourfeFilenameIsHash(true)
|
||||
img.setSourceFilenameIsHash(true)
|
||||
img.setMediaType(conf.TargetFormat.MediaType())
|
||||
|
||||
return img.InitConfig(r)
|
||||
|
@@ -215,7 +215,7 @@ func (d dirFile) path() string {
|
||||
type fileInfo interface {
|
||||
getSourceFilename() string
|
||||
setSourceFilename(string)
|
||||
setSourfeFilenameIsHash(bool)
|
||||
setSourceFilenameIsHash(bool)
|
||||
setSourceFs(afero.Fs)
|
||||
getFileInfo() hugofs.FileMetaInfo
|
||||
hash() (string, error)
|
||||
@@ -645,7 +645,7 @@ func (fi *resourceFileInfo) setSourceFilename(s string) {
|
||||
fi.sourceFilename = s
|
||||
}
|
||||
|
||||
func (fi *resourceFileInfo) setSourfeFilenameIsHash(b bool) {
|
||||
func (fi *resourceFileInfo) setSourceFilenameIsHash(b bool) {
|
||||
fi.sourceFilenameIsHash = b
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user