From b3ad7c9e7d516082733930ef86b550dcdd8c66e2 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Mon, 21 Sep 2026 08:25:26 +0900 Subject: ホーム: git履歴から生成する更新情報を追加し、サイドバーの実績を集約 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Updates.astro | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/components/Updates.astro (limited to 'src/components/Updates.astro') diff --git a/src/components/Updates.astro b/src/components/Updates.astro new file mode 100644 index 0000000..8fbe795 --- /dev/null +++ b/src/components/Updates.astro @@ -0,0 +1,53 @@ +--- +import updates from "../data/updates.json"; + +const limit = Number(Astro.props.limit ?? 5); +const items = (updates as { date: string; title: string; url: string; group: string }[]).slice(0, limit); +--- + +