calendar-table: Limit to next 7 events

This commit is contained in:
jtbx 2023-11-03 21:14:06 +01:00
parent e5e4a12b13
commit 4f4d2c0fc6

View file

@ -8,7 +8,7 @@
</tr>
</thead>
<tbody>
{{- range first 10 (sort $.Site.Data.calendar "dtstart" ) }}
{{- range first 7 (sort $.Site.Data.calendar "dtstart" ) }}
{{- if eq ._type "vevent"}}
<tr>
{{- $start := time .dtstart }}