Skip to content

Append home page title to / title (if on home)#213

Open
rmacd wants to merge 1 commit into
Vimux:masterfrom
rmacd:append-homepage-title-to-home
Open

Append home page title to / title (if on home)#213
rmacd wants to merge 1 commit into
Vimux:masterfrom
rmacd:append-homepage-title-to-home

Conversation

@rmacd

@rmacd rmacd commented Jun 23, 2020

Copy link
Copy Markdown
Contributor

Currently the site home page uses "site title" only in the <title> tag

All other pages use format <title>page_title - site_title</title>.

For "home page" in search engine, it would be good to be able to provide a "site tagline" on the home page only.

This change will therefore allow the title to be appended on the site home page, ie <title>site_title - homepage_title</title>.

To do this, the file content/_index.md need simply include title: element as usual: if present, this will be appended to page title of home page.

@ghost

ghost commented Mar 2, 2022

Copy link
Copy Markdown

@rmacd Is this why bing and google tell me I have no H1 tag or something else? I'm not terribly familiar with hugo yet. Do you know how I can fix it? Do I need to wait for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants