output: Make template name lower cased
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 4 Apr 2017 08:29:26 +0000 (10:29 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 4 Apr 2017 13:12:30 +0000 (15:12 +0200)
output/layout_base.go

index a0d2bc4eb7ac0991ba5c06d4e6dc21e4c07756ea..01885474dd01b8c26c26a3b3f4ad1f29c8dc13a4 100644 (file)
@@ -101,7 +101,7 @@ func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) {
        filenameNoSuffix := parts[0]
 
        id.OverlayFilename = fullPath
-       id.Name = name
+       id.Name = strings.ToLower(name)
 
        if isPlainText {
                id.Name = "_text/" + id.Name