Take 2: Load templates from the Afero source fs

See #2321
This commit is contained in:
Bjørn Erik Pedersen 2016-07-30 17:28:40 +02:00
parent ec23aa998a
commit 285807ba7a

View file

@ -456,8 +456,9 @@ func (t *GoHTMLTemplate) loadTemplates(absPath string, prefix string) {
} }
return nil return nil
} }
if err := helpers.SymbolicWalk(hugofs.Source(), absPath, walker); err != nil {
filepath.Walk(absPath, walker) jww.ERROR.Printf("Failed to load templates: %s", err)
}
} }
func (t *GoHTMLTemplate) LoadTemplatesWithPrefix(absPath string, prefix string) { func (t *GoHTMLTemplate) LoadTemplatesWithPrefix(absPath string, prefix string) {