diff options
Diffstat (limited to 'tpl/tplimpl/template.go')
-rw-r--r-- | tpl/tplimpl/template.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index f0d3066e2..cce867ac2 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -711,7 +711,7 @@ func (t *templateHandler) RebuildClone() { func (t *templateHandler) loadTemplates(prefix string) error { - walker := func(path string, fi os.FileInfo, err error) error { + walker := func(path string, fi hugofs.FileMetaInfo, err error) error { if err != nil || fi.IsDir() { return err } @@ -928,8 +928,8 @@ func (t *templateHandler) addTemplateFile(name, baseTemplatePath, path string) e realFilename := filename if fi, err := fs.Stat(filename); err == nil { - if fir, ok := fi.(hugofs.RealFilenameInfo); ok { - realFilename = fir.RealFilename() + if fim, ok := fi.(hugofs.FileMetaInfo); ok { + realFilename = fim.Meta().Filename() } } |