From 5ba682d5f70a21adc8e07c5f6131fdf3ce7d543e Mon Sep 17 00:00:00 2001 From: Yasutake Yohei Date: Wed, 1 Jul 2026 10:47:16 +0900 Subject: OG画像: twitter:image を追加、URLに ?v=2 を付与 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/og-image.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/og-image.ts b/src/plugins/og-image.ts index 0cfcbc2..c0e14ca 100644 --- a/src/plugins/og-image.ts +++ b/src/plugins/og-image.ts @@ -24,12 +24,17 @@ export default function ogImageIntegration(): AstroIntegration { // Derive slug from pathname: e.g., "/whisper-to-ai-moji-okoshi/" → "whisper-to-ai-moji-okoshi" let slug = page.pathname.replace(/^\/|\/$/g, "") || "index"; - const ogImageUrl = `https://yasutakeyohei.com/og/${slug}.png`; + const ogImageUrl = `https://yasutakeyohei.com/og/${slug}.png?v=2`; // Replace existing og:image with page-specific one html = html.replace( /