summaryrefslogtreecommitdiffstats
path: root/hugolib/site_output_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-12 21:01:22 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-12 21:40:55 +0200
commit6d2ea0f7d7e8a54b8edfc36e52ff74266c30dc27 (patch)
tree350599bf8f3f64bf1110f3f1af64a5eac4623ecb /hugolib/site_output_test.go
parent45c74526686f6a2afa02bcee767d837d6b9dd028 (diff)
hugolib, output: Do not lower case template names
This regression was introduced in Hugo 0.20. Fixes #3333
Diffstat (limited to 'hugolib/site_output_test.go')
-rw-r--r--hugolib/site_output_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/site_output_test.go b/hugolib/site_output_test.go
index 0edd8e1f0..ef2cdf9ad 100644
--- a/hugolib/site_output_test.go
+++ b/hugolib/site_output_test.go
@@ -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 }}
`,
)