Skip to content

Add Title to hugo.yaml and modify navbar to use it #257

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

Closed
wants to merge 1 commit into from

Conversation

stumbo
Copy link
Member

@stumbo stumbo commented Dec 24, 2024

navbar.html by default puts the title on every page. This update modifies navbar.html to not put the title on the home page. The title already is a central part of the text within the page and having it on the home page is redundant.

Defining the title in the config comes in useful for other Hugo templates that want to use the title of the website.  The RSS Feed will make use of this.

navbar.html by defalut puts the title on every page.  This update
modifies it to not put the title on the home page.  The title
already is a central part of the text within the page and having
it on the home page is redundant.

Defining the title in the config comes in useful for other Hugo
templates that want to use the title of the website.
@stumbo stumbo self-assigned this Dec 24, 2024
Copy link
Contributor

@hjellinek hjellinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see how this works in combination with the change I requested in issue #1864.

@stumbo
Copy link
Member Author

stumbo commented Dec 25, 2024

We can do that -- the staging site has this PR build it. It was hidden due to me overwriting the title with, Staging Environment as the title. I've disabled that for now. Long term, I'll re-enable it to ensure it's clear its the staging site.

@pamoroso
Copy link
Contributor

I'm not sure I understand where Hugo puts the title on the home page of the current site.

@pamoroso
Copy link
Contributor

Never mind, I now see the <title> tag has value The Medley Interlisp Project on the staging site and is blank on the production site.

Copy link
Contributor

@pamoroso pamoroso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@stumbo
Copy link
Member Author

stumbo commented Dec 26, 2024

Included in rssFeed branch and merged.  Closing.

@stumbo stumbo closed this Dec 26, 2024
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 this pull request may close these issues.

3 participants