aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-26 22:50:29 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-26 22:50:29 +0900
commit1d5379e55e10eaa3edeb17dcb3b41a1b3d4d8d31 (patch)
tree10d99b1ef267fae70ea1f9cab02c1cdef46261cb /src/components/ScheduleInteractive.astro
parent1e2642d667480fc381f22e1bf25a4df1ff7b58d0 (diff)
hp-archive: 市XとLoGoフォームの新着を反映
- 市公式Xの10月24日〜26日の新着8件を追加 - LoGoフォームから小平くだもの野菜スタンプラリーを追加 - 終了表示を10月26日分まで含めるよう変更
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 bc26e0a..37ab7c7 100644
--- a/src/components/ScheduleInteractive.astro
+++ b/src/components/ScheduleInteractive.astro
@@ -207,12 +207,12 @@
const today = new Date();
const todayKey = toKey(today.getFullYear(), today.getMonth() + 1, today.getDate());
- // 開催日がすべて過去のものは「終了」と表示する。
+ // 開催日が今日までのものは「終了」と表示する。
// 複数回の催しで未来の回が残っているものは対象外。
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');