diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-04 23:10:00 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-04 23:10:00 +0900 |
| commit | 680cccf3ed83578c387f52ff36b0d762f9c869ee (patch) | |
| tree | e523cf76cd213f854f3fd38ff1e5ee2282e9824c /src/plugins/og-image.ts | |
| parent | 69d3cad77290edbb57b539a674ec0199a528f1cc (diff) | |
ogp: 星空背景のデザインに刷新
背景をsharpで生成した星空に変更し、名前を大きくして
小さい表示でも読みやすくした。長いタイトルの自動縮小、
ホームのタグライン重複解消、キャッシュ更新(v=3)も含む。
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 120be81..b2c72ef 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}.jpg?v=2`; + const ogImageUrl = `https://yasutakeyohei.com/og/${imageSlug}.jpg?v=3`; html = html.replace( /<meta property="og:image" content="[^"]*"/g, |
