diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-22 11:34:17 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | dbb83f925a7cb256b69b158e2caf0d99e3c7c5e6 (patch) | |
tree | 2ad59d18c8f0847cf2f8bd3938327a4c9d462483 /output/layout_base.go | |
parent | 4aaed87dd97b085b1505e53b7d4564aa8f7f18ef (diff) |
hugolib: Read default output formats from site config
Diffstat (limited to 'output/layout_base.go')
-rw-r--r-- | output/layout_base.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/output/layout_base.go b/output/layout_base.go index 929ee07a2..6b26a4c5b 100644 --- a/output/layout_base.go +++ b/output/layout_base.go @@ -56,11 +56,11 @@ type TemplateLookupDescriptor struct { ContainsAny func(filename string, subslices [][]byte) (bool, error) } -func CreateTemplateID(d TemplateLookupDescriptor) (TemplateNames, error) { +func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) { var id TemplateNames - name := filepath.FromSlash(d.RelPath) + name := filepath.ToSlash(d.RelPath) if d.Prefix != "" { name = strings.Trim(d.Prefix, "/") + "/" + name |