From d00f8a4d8ee4c8887a2b62bb42c6a745c278ea16 Mon Sep 17 00:00:00 2001
From: h-yoshikawa44 <43331308+h-yoshikawa44@users.noreply.github.com>
Date: Sat, 7 Oct 2023 14:55:47 +0900
Subject: [PATCH] =?UTF-8?q?fix:=20OGP=E7=94=BB=E5=83=8F=E3=83=91=E3=82=B9?=
=?UTF-8?q?=E3=82=92=E3=83=95=E3=83=AB=E3=83=91=E3=82=B9=E3=81=AB=E4=BF=AE?=
=?UTF-8?q?=E6=AD=A3(#116)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
いつからかTwitterだけOGP画像がうまく表示されないようになってしまったため。
---
src/components/BaseHead.astro | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro
index 7f79e8d..f502ef5 100644
--- a/src/components/BaseHead.astro
+++ b/src/components/BaseHead.astro
@@ -13,10 +13,11 @@ const canonicalURL =
: new URL(Astro.url.pathname, Astro.site);
const { title, description = SITE_DESCRIPTION } = Astro.props;
-
const titleWithSiteTitle = title ? `${title} | ${SITE_TITLE}` : SITE_TITLE;
const simpleTitle = title ? title : SITE_TITLE;
+const ogpImage = new URL('/ogp.png', Astro.site?.origin!);
+
const GOOGLE_SITE_VERIFICATION = import.meta.env.GOOGLE_SITE_VERIFICATION;
---
@@ -40,14 +41,14 @@ const GOOGLE_SITE_VERIFICATION = import.meta.env.GOOGLE_SITE_VERIFICATION;
-
+
-
+