From fae05adb7dde90e86a9f9cfe09069e3084deef8a Mon Sep 17 00:00:00 2001 From: khalidabuhakmeh Date: Fri, 18 Apr 2025 08:28:03 -0400 Subject: [PATCH] Replace custom Head component logic with Starlight's default This change simplifies the Head component by utilizing the default Head component from Starlight. --- src/components/Head.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Head.astro b/src/components/Head.astro index 430319190..17e260e85 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -1,12 +1,12 @@ --- import { getImagePath } from "astro-opengraph-images"; import { Font } from "astro:assets"; +import Default from '@astrojs/starlight/components/Head.astro' -const { head } = Astro.locals.starlightRoute; const { url, site } = Astro; const openGraphImageUrl = getImagePath({ url, site }); --- -{head.map(({ tag: Tag, attrs, content }) => )} + {openGraphImageUrl && ()}