Skip to content

Commit eb36220

Browse files
Merge pull request #674 from DuendeSoftware/head-component-refactor
Replace custom Head component logic with Starlight's default
2 parents 6bf036a + fae05ad commit eb36220

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Head.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
import { getImagePath } from "astro-opengraph-images";
33
import { Font } from "astro:assets";
4+
import Default from '@astrojs/starlight/components/Head.astro'
45
5-
const { head } = Astro.locals.starlightRoute;
66
const { url, site } = Astro;
77
const openGraphImageUrl = getImagePath({ url, site });
88
---
99

10-
{head.map(({ tag: Tag, attrs, content }) => <Tag {...attrs} set:html={content} />)}
10+
<Default />
1111
{openGraphImageUrl && (<meta property="og:image" content={openGraphImageUrl} />)}
1212
<Font cssVariable="--font-roboto" preload />

0 commit comments

Comments
 (0)