diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 59f4e58..59deb08 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,25 +8,28 @@

- {{/* Humanize removes hyphens and capitalizes the first word */}} - {{ humanize .Section | upper }} + {{/* + CurrentSection allows us to use the section title instead of inferring from the folder. + https://gohugo.io/variables/page/#section-variables-and-methods + */}} + {{with .CurrentSection.Title }}{{. | upper }}{{end}}

- {{ .Title }} + {{- .Title -}}

{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
- {{ .Content }} - {{ partial "tags.html" . }} + {{- .Content -}} + {{- partial "tags.html" . -}}