shithub: hugo

Download patch

ref: 285807ba7a63b3032173b7a72fdbe30784268f56
parent: ec23aa998a73ee0aaa31e1c98ac8474c3262b9ab
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Jul 30 13:28:40 EDT 2016

Take 2: Load templates from the Afero source fs

See #2321

--- a/tpl/template.go
+++ b/tpl/template.go
@@ -456,8 +456,9 @@
 		}
 		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) {