aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/plugins
diff options
context:
space:
mode:
authorYasutake Yohei <yohei@yasutakeyohei.com>2026-07-01 20:34:03 +0900
committerYasutake Yohei <yohei@yasutakeyohei.com>2026-07-01 20:34:03 +0900
commit940a50a5d0abcee9c8c70a4afb170377eb32bf61 (patch)
tree38aa8f531d0fcf37545e56231ec6d6c14d60977c /src/plugins
parent8366e50870b21e2739a784fa07cd120f26191e0a (diff)
OG画像: パス区切りを -- に変更(ファイル名の - と衝突を回避)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/og-image.ts2
1 files changed, 1 insertions, 1 deletions
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(