From 4b4b58f9cd435e38ccba59dbb1e7228841605f37 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 25 Jun 2026 00:25:00 +0900 Subject: CGit のソーシャルアイコンを fork SVG からテキスト「cgit」に変更 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/starlight/SocialIcons.astro | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/components/starlight/SocialIcons.astro') diff --git a/src/components/starlight/SocialIcons.astro b/src/components/starlight/SocialIcons.astro index 4cceb9a..dbb863e 100644 --- a/src/components/starlight/SocialIcons.astro +++ b/src/components/starlight/SocialIcons.astro @@ -3,31 +3,28 @@ import config from "virtual:starlight/user-config"; const links = config.social || []; -// Built-in SVG icons (replacing Starlight's Icon component for social links) +// Built-in SVG icons for social links const BUILTIN: Record = { "x.com": '', "code-branch": '', }; - -// CGit 専用アイコン(cgit.yasutakeyohei.com の favicon に基づく) -const CGIT_SVG = - ''; --- { links.length > 0 && ( <> - {links.map(({ label, href, icon }) => { - const svg = label === "CGit" ? CGIT_SVG : (BUILTIN[String(icon)] || BUILTIN["code-branch"]); - return ( + {links.map(({ label, href }) => ( {label} - - ); - })} + ))} ) } @@ -47,5 +44,11 @@ const CGIT_SVG = 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