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) {