Skip to content

fix: dedupe titles and align sitewide title suffix - #6

Merged
LukasHirt merged 3 commits into
mainfrom
fix-hero-title-dup
Sep 25, 2026
Merged

LukasHirt merged 3 commits into
mainfrom
fix-hero-title-dup

Conversation

@LukasHirt

Copy link
Copy Markdown
Contributor

Fixes a homepage title/heading duplication (Starlight's splash hero was rendering the page's frontmatter title as its H1, duplicating the tagline text below it) and its follow-on inconsistency (the sitewide title suffix used on every other page's tab title didn't match the homepage's own override).

Setting the homepage's own title to match the tagline (to fix the
earlier 'memaudit docs | memaudit docs' tab-title duplication) created a
different duplication: Starlight's splash hero renders the page's title
as its H1 by default, so the heading and tagline ended up showing near-
identical text. Sets hero.title explicitly to 'memaudit' (decoupling the
H1 from the page's frontmatter title) and overrides the homepage's
<title> tag directly via Starlight's head frontmatter field, so it reads
just 'memaudit documentation' instead of the default '{page} | {site}'
template applied everywhere else.

Signed-off-by: Lukas Hirt <info@hirt.cz>
Every page's browser tab reads '{page} | memaudit docs' from Starlight's
site-wide title config, which no longer matched the homepage's own
'memaudit documentation' override from the previous commit. Renamed the
site-wide title to match, so the pattern is consistent everywhere:
'{page} | memaudit documentation'. Note this also changes the persistent
nav header text next to the logo (visible on every page), not just tab
titles - flagged to the repo owner in case the shorter 'memaudit docs'
was preferred there specifically.

Signed-off-by: Lukas Hirt <info@hirt.cz>
Overrides Starlight's default SiteTitle component so the visible nav
header reads just 'memaudit' while the sitewide title config
('memaudit documentation') still drives the browser tab title and
og:site_name metadata everywhere. Keeps everything else in the original
component unchanged (logo rendering, link href).

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt
LukasHirt merged commit 596977a into main Sep 25, 2026
6 checks passed
@LukasHirt
LukasHirt deleted the fix-hero-title-dup branch September 25, 2026 22:41
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.

1 participant