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/ScheduleMonthLinks.astro | |
| parent | 248d64c096930fa031ce48ddaa4cdb30681918fa (diff) | |
events: 月別アーカイブページを追加
- /kodaira-data/events/YYYY-MM/ をデータから自動生成(2026年10月〜2027年3月の6か月分)
- 会議とイベントを月ごとに表示し、前月・翌月のリンクを設置
- 行事予定ページ下部に月別アーカイブのリンクを追加
- 日付計算を共通モジュール化し、カレンダーと生成ページで同じ結果になるようにした
Diffstat (limited to 'src/components/ScheduleMonthLinks.astro')
| -rw-r--r-- | src/components/ScheduleMonthLinks.astro | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/ScheduleMonthLinks.astro b/src/components/ScheduleMonthLinks.astro new file mode 100644 index 0000000..8628998 --- /dev/null +++ b/src/components/ScheduleMonthLinks.astro @@ -0,0 +1,16 @@ +--- +// 月別アーカイブのリンク一覧。行事予定ページの下部に置く。 +import { monthCounts, monthKeys, monthLabel } from '@/lib/schedule-months'; +import { scheduleUrl } from '@/data/schedule/config'; +--- + +<ul class="schedule-month-archive"> + { + monthKeys.map((key) => ( + <li> + <a href={scheduleUrl(`${key}/`)}>{monthLabel(key)}の予定</a> + <span class="schedule-month-count">{monthCounts[key]}件</span> + </li> + )) + } +</ul> |
