diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-09-21 07:49:21 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-09-21 07:49:21 +0900 |
| commit | 9328db082f2882fb8c2a37c4e73c39c7582e4709 (patch) | |
| tree | 8d11342c5d94816db388949c69a9e45968c0412d /src/plugins/og-image.ts | |
| parent | 80862e66000d79846df87ca9db55f7980a53a83f (diff) | |
og/[slug].jpg.ts: OGP画像をPNGからJPEGに変更
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 e9efbcb..e16a393 100644 --- a/src/plugins/og-image.ts +++ b/src/plugins/og-image.ts @@ -20,7 +20,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 ogImageUrl = `https://yasutakeyohei.com/og/${imageSlug}.png?v=2`; + const ogImageUrl = `https://yasutakeyohei.com/og/${imageSlug}.jpg?v=2`; html = html.replace( /<meta property="og:image" content="[^"]*"/g, |
