Skip to content

Commit

Permalink
tpl: Ensure site templates can override theme templates
Browse files Browse the repository at this point in the history
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
  • Loading branch information
moorereason authored and bep committed Feb 5, 2018
1 parent fc06d5c commit 084cf41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tpl/tplimpl/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ func (t *templateHandler) loadTemplates(absPath string, prefix string) {
)

if themeDir != "" && strings.HasPrefix(absPath, themeDir) {
workingDir = themeDir
layoutDir = "layouts"
}

Expand Down

0 comments on commit 084cf41

Please sign in to comment.