Skip to content

Commit

Permalink
fix: remove double title from home pages
Browse files Browse the repository at this point in the history
closes #3375
  • Loading branch information
brc-dd committed Dec 26, 2023
1 parent 9568fea commit 9f1f04e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shared/shared.ts
Expand Up @@ -113,6 +113,10 @@ export function createTitle(siteData: SiteData, pageData: PageData): string {

const templateString = createTitleTemplate(siteData.title, template)

if (title === templateString.slice(3)) {
return title
}

return `${title}${templateString}`
}

Expand Down

0 comments on commit 9f1f04e

Please sign in to comment.