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
}
filepath.Walk(absPath, walker)
if err := helpers.SymbolicWalk(hugofs.Source(), absPath, walker); err != nil {
jww.ERROR.Printf("Failed to load templates: %s", err)
}
}
func (t *GoHTMLTemplate) LoadTemplatesWithPrefix(absPath string, prefix string) {