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 2018-02-04 22:13:52 -06:00 committed by Bjørn Erik Pedersen
parent fc06d5c18b
commit 084cf4191b

View file

@ -443,7 +443,6 @@ func (t *templateHandler) loadTemplates(absPath string, prefix string) {
)
if themeDir != "" && strings.HasPrefix(absPath, themeDir) {
workingDir = themeDir
layoutDir = "layouts"
}