aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/starlight/Breadcrumbs.astro1
-rw-r--r--src/plugins/og-image.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/starlight/Breadcrumbs.astro b/src/components/starlight/Breadcrumbs.astro
index 4242c14..da8f6e8 100644
--- a/src/components/starlight/Breadcrumbs.astro
+++ b/src/components/starlight/Breadcrumbs.astro
@@ -41,6 +41,7 @@ function labelMap(segment: string): string | null {
const map: Record<string, string> = {
'ippan-situmon': '一般質問',
'iinkai': '委員会・請願',
+ 'media': 'メディア掲載',
'about-dyslexia': 'ディスレクシアについて',
'gian-tou': '議案等',
'hattatu': '発達関連',
diff --git a/src/plugins/og-image.ts b/src/plugins/og-image.ts
index 01da59a..e9efbcb 100644
--- a/src/plugins/og-image.ts
+++ b/src/plugins/og-image.ts
@@ -34,6 +34,7 @@ export default function ogImageIntegration(): AstroIntegration {
// Fix breadcrumb: replace directory slug with Japanese label
html = html.replace(/>about-dyslexia</g, `>ディスレクシアについて<`);
html = html.replace(/>iinkai</g, `>委員会・請願<`);
+ html = html.replace(/>media</g, `>メディア掲載<`);
fs.writeFileSync(htmlPath, html, "utf-8");
}