diff options
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> |
