From 285807ba7a63b3032173b7a72fdbe30784268f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 30 Jul 2016 17:28:40 +0200 Subject: [PATCH] Take 2: Load templates from the Afero source fs See #2321 --- tpl/template.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tpl/template.go b/tpl/template.go index eb478325d..4cc818f87 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) {