Skip to content

Commit 0942c6e

Browse files
committed
remove redundant head config
1 parent fad8eb2 commit 0942c6e

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

astro.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ export default defineConfig({
9090
src: "./src/assets/logo.svg",
9191
},
9292
favicon: "/favicon.png",
93-
head: ["image", "og:image", "twitter:image"].map((name) => {
94-
return {
95-
tag: "meta",
96-
attrs: {
97-
name,
98-
content: "https://developers.cloudflare.com/cf-twitter-card.png",
99-
},
100-
};
101-
}),
10293
social: {
10394
github: "https://github.com/cloudflare/cloudflare-docs",
10495
"x.com": "https://x.com/cloudflare",

src/components/overrides/Head.astro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@ const ogImageUrl = new URL(ogImagePath, Astro.url.origin).toString();
150150
});
151151
});
152152
153+
head.push({
154+
tag: "link",
155+
attrs: {
156+
rel: "alternate",
157+
type: "text/markdown",
158+
href: Astro.url.pathname + "index.md",
159+
},
160+
content: "",
161+
});
162+
153163
metaTags.map((attrs) => {
154164
head.push({
155165
tag: "meta",

0 commit comments

Comments
 (0)