How to use page title in homepage context

It seems that Hugo uses the site title instead of the page title for home pages. I couldn’t find documentation about this. Is this intended behavior? Which shortcode can I use to get the page title even in homepage context?

See for an example.

Hi @tmh. Do you have a Title defined in front matter for your homepage?

For example, in content/ do you have a title param defined?

Yes, the title is defined as title = "Home" in content/

Hmm. What Hugo version are you using?

Hugo Static Site Generator v0.55.6-A5D4C82D2/extended linux/amd64 BuildDate: 2019-05-18T08:08:34Z

Okay, Hugo version is fine. You can fix this by

(1) Renaming




(2) Then update layouts/index.html to be:

{{ partial "header.html" . }}
{{ .Content }}
{{ partial "footer.html" . }}

1 Like

Using did the trick. Thanks for your support!