Skip to content

Fix head template to allow custom titles#528

Merged
KrisBuytaert merged 2 commits intomasterfrom
yvovandoorn/EnableCustomTitles
Jun 5, 2016
Merged

Fix head template to allow custom titles#528
KrisBuytaert merged 2 commits intomasterfrom
yvovandoorn/EnableCustomTitles

Conversation

@yvovandoorn
Copy link
Copy Markdown
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