fix: avoid duplicate site name in page titles

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-13 09:57:36 +00:00
parent df8d313896
commit 898d05bfa5

View File

@@ -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;
---