From 1cbfc51346e32be4f05f901099a6e29233d78bba Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 29 Oct 2026 23:03:56 +0900 Subject: hp-archive: 市Xの新着と防災訓練を追加 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 市公式Xの10月29日の新着2件を追加 - 庁舎総合防災訓練を追加 - 終了判定を10月29日分まで含めるよう変更 --- src/components/ScheduleInteractive.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/ScheduleInteractive.astro') diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 955977d..a217e8b 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -209,12 +209,12 @@ // 今日の月もカレンダーで移動できるように含める。 const months = [...new Set([...dateKeys.map((k) => k.slice(0, 7)), todayMonth])].sort(); - // 開催日が今日より前のものは「終了」と表示する。 + // 開催日が今日までのものは「終了」と表示する。 // 複数回の催しで未来の回が残っているものは対象外。 for (const entry of entries) { if (entry.dateText.includes('申込開始')) continue; if (entry.dates.length === 0) continue; - if (!entry.dates.every((d) => d < todayKey)) continue; + if (!entry.dates.every((d) => d <= todayKey)) continue; const row = document.getElementById(entry.rowId); if (!row) continue; row.classList.add('is-ended'); -- cgit v1.3.1