aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-31 08:45:28 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-31 08:45:28 +0900
commit38c2da96341b67c464fb4237267aa232686e6ec7 (patch)
tree28d66bb0b8b68ff85f1f4a393f4c8c84a66fea46 /src/components/ScheduleInteractive.astro
parenta9e3ce6017dfbb451791a447e43fa41882097260 (diff)
hp-archive: 市Xの10月30日の新着を追加
- 市公式Xの10月30日の新着8件を追加 - 終了判定を10月30日分までに変更
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
-rw-r--r--src/components/ScheduleInteractive.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro
index a217e8b..955977d 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');