aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleMonthLinks.astro
blob: 86289984858056ed27dbecdd7b2160f0106d1b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>