From: Bjørn Erik Pedersen Date: Sat, 30 Jul 2016 15:28:40 +0000 (+0200) Subject: Take 2: Load templates from the Afero source fs X-Git-Tag: v0.17~204 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=285807ba7a63b3032173b7a72fdbe30784268f56;p=brevno-suite%2Fhugo Take 2: Load templates from the Afero source fs See #2321 --- diff --git a/tpl/template.go b/tpl/template.go index eb478325..4cc818f8 100644 --- 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) {