We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6bf036a + fae05ad commit eb36220Copy full SHA for eb36220
1 file changed
src/components/Head.astro
@@ -1,12 +1,12 @@
1
---
2
import { getImagePath } from "astro-opengraph-images";
3
import { Font } from "astro:assets";
4
+import Default from '@astrojs/starlight/components/Head.astro'
5
-const { head } = Astro.locals.starlightRoute;
6
const { url, site } = Astro;
7
const openGraphImageUrl = getImagePath({ url, site });
8
9
10
-{head.map(({ tag: Tag, attrs, content }) => <Tag {...attrs} set:html={content} />)}
+<Default />
11
{openGraphImageUrl && (<meta property="og:image" content={openGraphImageUrl} />)}
12
<Font cssVariable="--font-roboto" preload />
0 commit comments