ref: 084cf4191b3c1e7590a4223fd9251019ef5d4c21
parent: fc06d5c18bb1e47f90f0297aa8121ee0775e047d
author: Cameron Moore <[email protected]>
date: Sun Feb 4 17:13:52 EST 2018
tpl: Ensure site templates can override theme templates The tplimpl package was misusing the TemplateLookupDescriptor.WorkingDir field from the output package. By incorrectly setting it to the theme directory instead of the site root, the user is unable to override theme templates in some situations. Fixes #3505
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -443,7 +443,6 @@
)
if themeDir != "" && strings.HasPrefix(absPath, themeDir) {
- workingDir = themeDir
layoutDir = "layouts"
}