{{ .Title }}
{{ with .Content }}{{ partial "month-name.html" (dict "month" $month "lang" $lang) }} {{ $year }}
-
{{ if gt $lead 0 }}{{ range seq $lead }}{{ end }}{{ end }}
{{ range $day := seq 1 $days }}
{{ $date := printf "%s-%02d" $key $day }}
{{ $onThisDay := where $events "Params.event_date" $date }}
{{/* The column a day falls in is its weekday, Monday first — the
same arithmetic the padding above is made of. On a phone the
grid becomes one day per row, where a column position says
nothing and the name has to be written out. */}}
{{ $weekday := mod (add (sub $day 1) $lead) 7 }}
- {{ partial "weekday-name.html" (dict "weekday" $weekday "lang" $lang) }} {{ $day }} {{ range $onThisDay }} {{ with .Params.event_time }} {{ end }}{{ .Title }} {{ end }} {{ end }}
{{ partial "t.html" (dict "key" "noevents" "lang" $lang) }}
{{ end }}