From 940a50a5d0abcee9c8c70a4afb170377eb32bf61 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei Date: Wed, 1 Jul 2026 20:34:03 +0900 Subject: OG画像: パス区切りを -- に変更(ファイル名の - と衝突を回避) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/og-image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/og-image.ts b/src/plugins/og-image.ts index 7ee6568..c1eeb5c 100644 --- a/src/plugins/og-image.ts +++ b/src/plugins/og-image.ts @@ -19,7 +19,7 @@ export default function ogImageIntegration(): AstroIntegration { let slug = page.pathname.replace(/^\/|\/$/g, "") || "index"; // URL-safe: replace / with - for nested paths - const imageSlug = slug.replace(/\//g, "-"); + const imageSlug = slug.replace(/\//g, "--"); const ogImageUrl = `https://yasutakeyohei.com/og/${imageSlug}.png?v=2`; html = html.replace( -- cgit v1.3.1