diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-12 20:40:36 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-13 11:19:54 +0200 |
commit | 077005e514b1ed50d84ceb90c7c72f184cb04521 (patch) | |
tree | 4154c7825764929c4c2b3a07e4cef8e971957982 /tpl/tplimpl | |
parent | efc0e05c4ef974414b010b3fba5e40dab0d43876 (diff) |
output: Fix base theme vs project base template logic
Fixes #3323
Diffstat (limited to 'tpl/tplimpl')
-rw-r--r-- | tpl/tplimpl/template.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index c14d24146..f1ab37ee0 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -420,13 +420,15 @@ func (t *templateHandler) loadTemplates(absPath string, prefix string) { li := strings.LastIndex(path, layoutDir) + len(layoutDir) + 1 relPath := path[li:] + templateDir := path[:li-len(layoutDir)-1] descriptor := output.TemplateLookupDescriptor{ + TemplateDir: templateDir, WorkingDir: workingDir, LayoutDir: layoutDir, RelPath: relPath, Prefix: prefix, - Theme: t.PathSpec.Theme(), + ThemeDir: themeDir, OutputFormats: t.OutputFormatsConfig, FileExists: func(filename string) (bool, error) { return helpers.Exists(filename, t.Fs.Source) |