From 898d05bfa5fa100defc662bcc7d17c1482cd3aa5 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 13 Jan 2026 09:57:36 +0000 Subject: [PATCH] fix: avoid duplicate site name in page titles Co-Authored-By: Claude Opus 4.5 --- src/layouts/BaseLayout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 8b3e21c..5ec85ce 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -11,7 +11,7 @@ interface Props { } const { title, description = config.description } = Astro.props; -const fullTitle = title === config.title ? title : `${title} | ${config.title}`; +const fullTitle = title.includes(config.title) ? title : `${title} | ${config.title}`; const canonicalUrl = Astro.url.href; ---