{{- $list := partialCached "tsc/calendar/list" . -}} {{- $cat := .Get "category" -}} {{/* warnf "%#v" $cat */}} {{- $showAge := .Get "showAge" | default false -}} {{ if $showAge }}{{ end }} {{ range $list -}} {{- $cats := slice .class -}} {{- if eq (printf "%T" .class) "[]interface {}" }}{{ $cats = .class }}{{ end -}} {{- if not (in $cats $cat) }}{{ continue }}{{ end -}} {{/* warnf "%T %#v" .class . */}} {{ 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 }}