From 9c5cc49aa0f269dafe154358ee23b27e8dce1d86 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 25 Jun 2026 00:05:55 +0900 Subject: CGitのソーシャルアイコンをカスタム fork/branch SVG に変更 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SocialIcons コンポーネントを上書きして、CGit 用に git リポジトリを表す fork/branch アイコンを表示。 - src/components/starlight/SocialIcons.astro を新規作成 - Starlight の social icon はカスタム SVG を受け付けないため、 コンポーネント上書きで対応 - X アイコンも併せてインライン化 --- astro.config.mjs | 1 + 1 file changed, 1 insertion(+) (limited to 'astro.config.mjs') diff --git a/astro.config.mjs b/astro.config.mjs index c1b5221..ef0da2a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -226,6 +226,7 @@ export default defineConfig({ ], components: { PageTitle: "./src/components/starlight/PageTitle.astro", + SocialIcons: "./src/components/starlight/SocialIcons.astro", }, }), ], -- cgit v1.3.1