From d057fb71fccb0547f0513c6f3ce12aa443aa5370 Mon Sep 17 00:00:00 2001 From: Cameron Otsuka Date: Thu, 19 Jun 2025 18:08:43 -0700 Subject: [PATCH] use newly generated opengraph images --- src/components/head/base.astro | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/head/base.astro b/src/components/head/base.astro index 1aceb91..7d424fd 100644 --- a/src/components/head/base.astro +++ b/src/components/head/base.astro @@ -9,12 +9,6 @@ interface Props { } const canonicalURL = new URL(Astro.url.pathname, Astro.site); -const canonicalSegments = canonicalURL.pathname.split('/').filter(Boolean); -const lastSegment = canonicalSegments.pop() -const newSegment = lastSegment + '-opengraph.png'; -canonicalSegments.push(newSegment); -const newPath = canonicalSegments.join('/'); -const ogURL = new URL(newPath, Astro.site) const favIcon = await getImage({ src: FavIcon, width: 48, @@ -37,7 +31,7 @@ const { title, description } = Astro.props; - + -- 2.51.0