{{ $start := .Get 0 }} {{ $end := .Get 1}} {{ $days := after 2 .Params }} {{ $calendar := $.Site.Data.calendar.calendar }}
{{ range $days }} | {{ . }} | {{ end }}|||
---|---|---|---|---|
{{ range $days }} | vorne | mitte | hinten | {{ end }}|
{{ $time }} | {{ end }} {{ range $days }} {{ $day := . }} {{ $firstRoom := true }} {{ range slice "vorne" "mitte" "hinten" }} {{ $room := . }} {{ $addClass := "" }} {{ if $firstRoom }} {{ $addClass = "first-col-of-room" }} {{ $firstRoom = false }} {{ end }} {{ with index (index (index $calendar .) $day) $time }}
{{ .title }}
|
{{ else }}
{{ end }} {{ end }} {{ end }} {{ if or (eq . 0) (eq . 30) }} {{ $time := printf "%2d.%02d" $hour . }} | {{ $time }} | {{ end }}