Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
{{$base := .}} {{range .Dates}}
{{if eq $base.Time.Month .Month}}
{{end}}
{{end}}
{{$events := (call $base.EventsForDate .)}}
{{if $events}}
-
{{$overflow := 0}}
{{if gt (len $events) 3}}
{{$overflow = call $base.Sub (len $events) 3}}
{{$events = slice $events 0 3}}
{{end}}
{{range $events}}
{{$event := index .Data.Events 0}}
- {{($event.DateTimeStart nil).Format "15:04"}} {{$event.Props.Text "SUMMARY"}} {{end}} {{if ne $overflow 0}}
- ...and {{$overflow}} more {{end}}