diff options
Diffstat (limited to 'src/plugins/og-image.ts')
| -rw-r--r-- | src/plugins/og-image.ts | 2 |
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( |
