Compare commits

...

3 Commits

Author SHA1 Message Date
Luca 2585b1fa05 Add schedule
continuous-integration/drone/push Build is passing Details
2022-08-29 00:35:37 +02:00
Luca 961119ad86 Fix height of title row to prevent it from growing very tall 2022-08-29 00:33:46 +02:00
Luca 2463c21096 Fix 'schedule' shortcode when rooms do not have events on all days 2022-08-29 00:32:50 +02:00
3 changed files with 19 additions and 5 deletions

View File

@ -55,7 +55,7 @@ $timeslot-height: 0.65em;
.schedule-grid { .schedule-grid {
display: grid; display: grid;
grid-auto-rows: $timeslot-height; grid-auto-rows: $timeslot-height;
grid-template-rows: auto; grid-template-rows: 2em;
&.schedule-room { &.schedule-room {
grid-template-columns: 400px; grid-template-columns: 400px;

12
content/pages/schedule.md Normal file
View File

@ -0,0 +1,12 @@
---
title: "Programm"
slug: "schedule"
menu:
main:
weight: 15
---
Wir werden in den nächsten Tagen nach und nach weitere Programmpunkte veröffentlichen.
Bitte beachtet, dass die zeitliche Planung sich aktuell noch jederzeit ändern kann.
{{<schedule url="https://cfp.fairydust.reisen/iger-2022/schedule/export/schedule.json">}}

View File

@ -9,10 +9,12 @@
{{ $rooms := dict }} {{ $rooms := dict }}
{{ range $day := .conference.days }} {{ range $day := .conference.days }}
{{ range $room := $data.schedule.conference.rooms }} {{ range $room := $data.schedule.conference.rooms }}
{{ if index $rooms $room.name }} {{ with index $day.rooms $room.name }}
{{ $rooms = merge $rooms (dict $room.name ((index $rooms $room.name) | append (index $day.rooms .name))) }} {{ if index $rooms $room.name }}
{{ else }} {{ $rooms = merge $rooms (dict $room.name ((index $rooms $room.name) | append .)) }}
{{ $rooms = merge $rooms (dict $room.name (index $day.rooms .name)) }} {{ else }}
{{ $rooms = merge $rooms (dict $room.name .) }}
{{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}