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

Duplicate content in title, Crab - Crab #10

Closed
bozidarsevo opened this issue Sep 27, 2017 · 7 comments
Closed

Duplicate content in title, Crab - Crab #10

bozidarsevo opened this issue Sep 27, 2017 · 7 comments

Comments

@bozidarsevo
Copy link

In header.html partial there is {{ .Title }} - {{ .Site.Title }} but when you are on the home page .Title and .Site.Title are the same, and you get page title "Crab - Crab".

@ghost
Copy link

ghost commented Mar 22, 2018

Fixed in https://github.com/drowssaPdnAemanresU/crab and awaiting the pull request to be approved.

@thomasheller
Copy link
Owner

Actually, something else is going on here. The title of the home page is set to Home, therefore the title should render as Home - Crab. Any idea why Hugo behaves differently in the home page context?

@thomasheller
Copy link
Owner

The same is happening in the h1 tag of header.html where Hugo renders Crab (the site title) instead of Home (the page title) for the home page.

@davidsneighbour
Copy link

How about .Page.Title?

@thomasheller
Copy link
Owner

.Page.Title renders the site title as well.

@thomasheller
Copy link
Owner

@thomasheller
Copy link
Owner

Solved per solution suggested there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants