From 084cf4191b3c1e7590a4223fd9251019ef5d4c21 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Sun, 4 Feb 2018 22:13:52 -0600 Subject: 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 --- tpl/tplimpl/template.go | 1 - 1 file changed, 1 deletion(-) (limited to 'tpl') 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" } -- cgit v1.2.3