fix: remove double title from home pages

closes #3375
pull/3276/head
Divyansh Singh 11 months ago
parent 9568fea8fc
commit 9f1f04e00a

@ -113,6 +113,10 @@ export function createTitle(siteData: SiteData, pageData: PageData): string {
const templateString = createTitleTemplate(siteData.title, template) const templateString = createTitleTemplate(siteData.title, template)
if (title === templateString.slice(3)) {
return title
}
return `${title}${templateString}` return `${title}${templateString}`
} }

Loading…
Cancel
Save