Skip to content

Commit 9f1f04e

Browse files
committedDec 26, 2023
fix: remove double title from home pages
closes #3375
1 parent 9568fea commit 9f1f04e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/shared/shared.ts

+4
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ export function createTitle(siteData: SiteData, pageData: PageData): string {
113113

114114
const templateString = createTitleTemplate(siteData.title, template)
115115

116+
if (title === templateString.slice(3)) {
117+
return title
118+
}
119+
116120
return `${title}${templateString}`
117121
}
118122

0 commit comments

Comments
 (0)
Please sign in to comment.