We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c77d6 commit 6d8fcefCopy full SHA for 6d8fcef
.vitepress/config/shared.ts
@@ -54,6 +54,21 @@ export const sharedConfig = defineConfig({
54
base: "/",
55
head,
56
lastUpdated: false,
57
+ transformHead: ({ pageData }) => {
58
+ const head: HeadConfig[] = [];
59
+
60
+ if (pageData.frontmatter.canonical) {
61
+ head.push([
62
+ "link",
63
+ {
64
+ rel: "canonical",
65
+ href: pageData.frontmatter.canonical,
66
+ },
67
+ ]);
68
+ }
69
70
+ return head;
71
72
themeConfig: {
73
siteTitle: "Oxc",
74
logo: "https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/round.svg",
0 commit comments