From e7b60d5ef8c8cf5471a62498fd0a88f61cd2812e Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 5 Nov 2026 14:58:06 +0900 Subject: events: メインは前月以降、アーカイブは前々月以前に分ける MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit メインページの一覧とカレンダーを前月以降に広げ、前々月以前の月だけを アーカイブとして生成するようにした。該当が無いときはアーカイブ欄に その旨を表示する。月が進めば自動でページが増える。 RSSと旧URLの転送先も、存在しない月ページを指さないよう合わせた。 --- src/components/ScheduleInteractive.astro | 6 +-- src/components/ScheduleMonthLinks.astro | 62 ++++++++++++++++----------- src/components/ScheduleTable.astro | 15 +++---- src/content/docs/kodaira/events.mdx | 8 ++-- src/lib/schedule-dates.ts | 18 ++++++++ src/lib/schedule-months.ts | 16 ++++++- src/pages/kodaira-data/events/[...path].astro | 13 +++++- src/pages/kodaira/events/[period].astro | 29 +++++++------ src/pages/kodaira/events/feed.xml.ts | 2 +- src/styles/custom.css | 9 ++++ 10 files changed, 122 insertions(+), 56 deletions(-) diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 30569db..f0bd73c 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -1,7 +1,7 @@