diff --git a/resources/image_cache.go b/resources/image_cache.go index 542a6836fc1..f416f02307b 100644 --- a/resources/image_cache.go +++ b/resources/image_cache.go @@ -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) diff --git a/resources/resource.go b/resources/resource.go index 884900d5870..b7e6b65a8bd 100644 --- a/resources/resource.go +++ b/resources/resource.go @@ -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 }