commit 285807ba7a63b3032173b7a72fdbe30784268f56
parent ec23aa998a73ee0aaa31e1c98ac8474c3262b9ab
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 30 Jul 2016 17:28:40 +0200
Take 2: Load templates from the Afero source fs
See #2321
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tpl/template.go b/tpl/template.go
@@ -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) {