From 6e12e40b2a4d58545b088f662a247fdf4355120d Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sat, 19 Sep 2026 18:32:20 +0900 Subject: サイドバー・パンくず: メディア掲載ページを追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 1 + public/llms.txt | 1 + src/components/starlight/Breadcrumbs.astro | 1 + src/plugins/og-image.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index efb2ffe..ca52326 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -74,6 +74,7 @@ export default defineConfig({ ], }, { label: "私の方針", link: "/policy/" }, + { label: "メディア掲載", link: "/media/" }, { label: "一般質問", collapsed: true, diff --git a/public/llms.txt b/public/llms.txt index 8f336dd..2b36735 100644 --- a/public/llms.txt +++ b/public/llms.txt @@ -10,6 +10,7 @@ - ホーム: https://yasutakeyohei.com/ - 実績概要: https://yasutakeyohei.com/jisseki/ - 私の方針: https://yasutakeyohei.com/policy/ +- メディア掲載: https://yasutakeyohei.com/media/ - ご支援: https://yasutakeyohei.com/support/ - コンタクト: https://yasutakeyohei.com/contact/ 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 = { '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ディスレクシアについて<`); html = html.replace(/>iinkai委員会・請願<`); + html = html.replace(/>mediaメディア掲載<`); fs.writeFileSync(htmlPath, html, "utf-8"); } -- cgit v1.3.1