mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:32:21 +00:00
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:
parent
fc06d5c18b
commit
084cf4191b
1 changed files with 0 additions and 1 deletions
|
@ -443,7 +443,6 @@ func (t *templateHandler) loadTemplates(absPath string, prefix string) {
|
|||
)
|
||||
|
||||
if themeDir != "" && strings.HasPrefix(absPath, themeDir) {
|
||||
workingDir = themeDir
|
||||
layoutDir = "layouts"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue