diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-05 13:30:26 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-05 13:30:26 +0900 |
| commit | bb74335a2fc1b0697c2b7088b010484ade784519 (patch) | |
| tree | 39f8033b3d19af3f1376a222725bae6de816c98e /src/components/ScheduleInteractive.astro | |
| parent | 248d64c096930fa031ce48ddaa4cdb30681918fa (diff) | |
events: 月別アーカイブページを追加
- /kodaira-data/events/YYYY-MM/ をデータから自動生成(2026年10月〜2027年3月の6か月分)
- 会議とイベントを月ごとに表示し、前月・翌月のリンクを設置
- 行事予定ページ下部に月別アーカイブのリンクを追加
- 日付計算を共通モジュール化し、カレンダーと生成ページで同じ結果になるようにした
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 3dd6048..424b453 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -1,7 +1,7 @@ <script> // URLは src/data/schedule/config.ts で一元管理している(ページ移転時はそこだけ変える) import { scheduleAbsoluteUrl } from '@/data/schedule/config'; - import { parseDates, applyExclusions, toKey, keyToDate } from '@/lib/schedule-dates'; + import { parseDates, applyExclusions, toKey, keyToDate, entryDates } from '@/lib/schedule-dates'; const CATEGORY_DEFS = [ { icon: '👶', label: '子育て' }, @@ -63,17 +63,7 @@ } row.dataset.category = category; - const dates = new Set(parseDates(dateText)); - // 審議会の「毎月1回(11月12日、…も開催)」のように、 - // 時間・会場欄に追加の開催日が書かれている場合がある。 - if (type === 'meeting') { - for (const key of parseDates(timeText)) dates.add(key); - } - // イベントの「(11月4日を除く)」を反映する。 - if (type === 'event') { - // 時間欄の「(11月4日を除く)」を日付セル側の集合に反映する。 - applyExclusions(dates, timeText); - } + const dates = new Set(entryDates(type, dateText, timeText)); entries.push({ type, |
