From ff9bafe77a5e0dd84b613bb2aae0bf2a9cb84359 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:40:32 +0900 Subject: events: 年度別アーカイブとRSSフィードを追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 月別ページに加えて、4月〜翌3月の年度ページ(/kodaira/events/r8/)を 追加した。月別リンクは年度ごとにまとめ、今後の予定はfeed.xmlで 配信する。 --- src/components/ScheduleMonthLinks.astro | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'src/components') diff --git a/src/components/ScheduleMonthLinks.astro b/src/components/ScheduleMonthLinks.astro index 8628998..9f553df 100644 --- a/src/components/ScheduleMonthLinks.astro +++ b/src/components/ScheduleMonthLinks.astro @@ -1,15 +1,35 @@ --- -// 月別アーカイブのリンク一覧。行事予定ページの下部に置く。 -import { monthCounts, monthKeys, monthLabel } from '@/lib/schedule-months'; +// 月別・年度別アーカイブのリンク一覧。行事予定ページの下部に置く。 +import { + fiscalYearKeys, + fiscalYearLabel, + fiscalYearOf, + monthCounts, + monthKeys, + monthLabel, +} from '@/lib/schedule-months'; import { scheduleUrl } from '@/data/schedule/config'; + +const groups = fiscalYearKeys.map((fy) => ({ + key: fy, + label: fiscalYearLabel(fy), + months: monthKeys.filter((month) => fiscalYearOf(month) === fy), +})); ---