{{ $calendars := .Site.Data.schedule.calendars -}} {{- $list := slice -}} {{- range $room, $roomData := $calendars -}} {{- if ($roomData.ignore | default false) -}}{{ continue }}{{- end -}} {{- $roomName := $roomData.name | default $room -}} {{/* warnf "%s " $room */}} {{- range $roomData.schedule -}} {{- $addData := dict "room" $roomName "weight" 0 -}} {{- $addData = merge $addData . -}} {{/* warnf "%#v" $addData */}} {{- $list = $list | append $addData -}} {{- end -}} {{- end -}} {{- $cat := .Get "category" -}} {{- $showAge := .Get "showAge" | default false -}} {{- $list = sort $list "start" -}} {{- $list = sort $list "title" -}} {{- $list = sort $list "weight" -}} {{/* warnf "%#v" $list */}} {{ if $showAge }}{{ end }} {{ range $list -}} {{- if ne .class $cat }}{{ continue }}{{ end -}} {{/* warnf "%#v" . */}} {{ if $showAge }}{{ end }} {{- end}}
GruppeJahrgangTag Zeit Ort
{{ .title }}{{ with .subtitle }} - {{ . }}{{ end }} {{ .age }}{{ index site.Data.days .day }} {{- $startTimeStr := printf "2025-01-02T%s:00" .start -}} {{- $startTime := time.AsTime $startTimeStr -}} {{- $duration := time.Duration "minute" .duration -}} {{- $endTime := $startTime.Add $duration}} {{/* warnf "Start %s, duration %s, %s" $startTime $duration $endTime */}} {{- $startTime.Format "15:04"}} - {{ $endTime.Format "15:04" }} {{ .room }}