mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugolib, output: Do not lower case template names
This regression was introduced in Hugo 0.20. Fixes #3333
This commit is contained in:
parent
45c7452668
commit
6d2ea0f7d7
2 changed files with 5 additions and 1 deletions
|
@ -114,6 +114,8 @@ other = "Olboge"
|
|||
|
||||
th, h := newTestSitesFromConfig(t, mf, siteConfig,
|
||||
|
||||
// Case issue partials #3333
|
||||
"layouts/partials/GoHugo.html", `Go Hugo Partial`,
|
||||
"layouts/_default/baseof.json", `START JSON:{{block "main" .}}default content{{ end }}:END JSON`,
|
||||
"layouts/_default/baseof.html", `START HTML:{{block "main" .}}default content{{ end }}:END HTML`,
|
||||
|
||||
|
@ -137,6 +139,8 @@ List HTML|{{.Title }}|
|
|||
<atom:link href={{ .Permalink }} rel="self" type="{{ .MediaType }}" />
|
||||
{{- end -}}
|
||||
{{ .Site.Language.Lang }}: {{ T "elbow" -}}
|
||||
Partial Hugo 1: {{ partial "GoHugo.html" . }}
|
||||
Partial Hugo 2: {{ partial "GoHugo" . -}}
|
||||
{{ end }}
|
||||
`,
|
||||
)
|
||||
|
|
|
@ -101,7 +101,7 @@ func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) {
|
|||
filenameNoSuffix := parts[0]
|
||||
|
||||
id.OverlayFilename = fullPath
|
||||
id.Name = strings.ToLower(name)
|
||||
id.Name = name
|
||||
|
||||
if isPlainText {
|
||||
id.Name = "_text/" + id.Name
|
||||
|
|
Loading…
Reference in a new issue