Repository navigation
fix: dedupe titles and align sitewide title suffix - #6
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).