summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2018-02-04 22:13:52 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-02-05 08:38:04 +0100
commit084cf4191b3c1e7590a4223fd9251019ef5d4c21 (patch)
treeb75bfec03455b75d2259cfe54c336b75872b64cf /tpl
parentfc06d5c18bb1e47f90f0297aa8121ee0775e047d (diff)
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
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index e13dd0aaa..25757abc4 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -443,7 +443,6 @@ func (t *templateHandler) loadTemplates(absPath string, prefix string) {
)
if themeDir != "" && strings.HasPrefix(absPath, themeDir) {
- workingDir = themeDir
layoutDir = "layouts"
}