Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix head template to allow custom titles #528

Merged
merged 2 commits into from
Jun 5, 2016

Conversation

yvovandoorn
Copy link
Contributor

The logic to override, or to specify a custom title, per page was already set in the template.

However the Params was improperly used as all Params have to be lower case (per: https://gohugo.io/templates/variables/#page-params). In this case it was .Params.Heading instead of .Params.heading.

I've added two spaces to it for readability. To anyone that now comes across head.html they'll see that it can either be set by Params.heading or .Title; both can be set in side of the md files in content/

This, to me, fixes #259 as it provides non-breaking change (no one is using "heading" in content in their .md file) to those that want to set custom titles.

@KrisBuytaert KrisBuytaert merged commit 426d1ee into master Jun 5, 2016
@yvovandoorn yvovandoorn deleted the yvovandoorn/EnableCustomTitles branch June 5, 2016 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

decouple setting the browser title bar from setting the header text displayed in page
3 participants