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
This commit is contained in:
Cameron Moore authored and Bjørn Erik Pedersen committed 2018-02-05 08:38:04 +01:00
1 parent fc06d5c18b
commit 084cf4191b
1 file changed
-1
-1
View File
@@ -443,7 +443,6 @@ func (t *templateHandler) loadTemplates(absPath string, prefix string) {
)
if themeDir != "" && strings.HasPrefix(absPath, themeDir) {
workingDir = themeDir
layoutDir = "layouts"
}