From 11420afc4486802bbf76e1617548f20656fbeb6d Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 25 Jun 2026 00:29:12 +0900 Subject: CGit と X 両方のソーシャルアイコンを適切に修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X アイコンが code-branch になっていたバグを修正し、 X は X ロゴ SVG に。CGit は Git fork/branch アイコンに。 --- src/components/starlight/SocialIcons.astro | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'src/components/starlight') diff --git a/src/components/starlight/SocialIcons.astro b/src/components/starlight/SocialIcons.astro index dbb863e..334c9e4 100644 --- a/src/components/starlight/SocialIcons.astro +++ b/src/components/starlight/SocialIcons.astro @@ -10,21 +10,24 @@ const BUILTIN: Record = { "code-branch": '', }; + +// CGit: Git リポジトリの fork/branch アイコン +const CGIT_SVG = + ''; --- { links.length > 0 && ( <> - {links.map(({ label, href }) => ( + {links.map(({ label, href, icon }) => { + const svg = label === "CGit" ? CGIT_SVG : (BUILTIN[String(icon)] || ""); + return ( {label} - {label === "CGit" ? ( - - ) : ( - - ))} + ); + })} ) } @@ -44,11 +47,5 @@ const BUILTIN: Record = { height: 1rem; display: block; } - .sl-social-text { - font-size: 0.8rem; - font-weight: 700; - line-height: 1; - font-family: var(--__sl-font-mono, monospace); - } } -- cgit v1.3.1