diff options
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 6 |
1 files changed, 3 insertions, 3 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 @@ <script> // URLは src/data/schedule/config.ts で一元管理している(ページ移転時はそこだけ変える) import { scheduleAbsoluteUrl } from '@/data/schedule/config'; - import { parseDates, applyExclusions, toKey, keyToDate, entryDates } from '@/lib/schedule-dates'; + import { parseDates, applyExclusions, toKey, keyToDate, entryDates, mainStartMonth } from '@/lib/schedule-dates'; const CATEGORY_DEFS = [ { icon: '👶', label: '子育て' }, @@ -100,9 +100,9 @@ const todayKey = toKey(today.getFullYear(), today.getMonth() + 1, today.getDate()); const todayMonth = todayKey.slice(0, 7); // 今日の月もカレンダーで移動できるように含める。 - // メインページの一覧は今月以降に絞っているので、カレンダーも過去の月には戻らない。 + // メインページの一覧は前月以降に絞っているので、カレンダーも前々月以前には戻らない。 const months = [...new Set([...dateKeys.map((k) => k.slice(0, 7)), todayMonth])] - .filter((month) => month >= todayMonth) + .filter((month) => month >= mainStartMonth()) .sort(); // 開催日が今日より前のものは「終了」と表示する。 |
