From: Cameron Otsuka Date: Fri, 20 Jun 2025 01:08:43 +0000 (-0700) Subject: use newly generated opengraph images X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=d057fb71fccb0547f0513c6f3ce12aa443aa5370;p=cotsuka.github.io use newly generated opengraph images --- 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; - +