Skip to content

Commit 1ad65c9

Browse files
fix: duplicated head links
1 parent 92d81f9 commit 1ad65c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.vitepress/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig({
1515
...shared,
1616
locales,
1717
transformHead(context) {
18-
const head: HeadConfig[] = [ ...context.head ];
18+
const head: HeadConfig[] = [];
1919
if (!context.pageData.isNotFound) {
2020
const localesRegex = new RegExp(`^/(${Object.keys(locales).join('|')})`);
2121
const canonical = '/' + context.page.replace(/\.md$/, '.html').replace(/\/index\.html$/, '/');

0 commit comments

Comments
 (0)