From 53585df7dd0db7598817c661aef7371b955c4e4f Mon Sep 17 00:00:00 2001 From: plx Date: Sun, 15 Mar 2026 13:45:36 -0500 Subject: [PATCH] Fix duplicate site name in home page title The home page title rendered as "Dispatches | Dispatches" because PageLayout unconditionally appended "| SITE.NAME". Now skip the suffix when the page title already matches the site name. Co-Authored-By: Claude Opus 4.6 --- src/layouts/PageLayout.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index fdb6947..eeb67f6 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -14,12 +14,13 @@ type Props = { const { title, description, ogData } = Astro.props; const plainTitle = stripMarkdown(title); +const pageTitle = plainTitle === SITE.NAME ? plainTitle : `${plainTitle} | ${SITE.NAME}`; --- - +