www.iger.events/layouts/shortcodes/schedule.html

48 lines
1.4 KiB
HTML
Raw Normal View History

{{ with $.Site.Data.schedule }}
2022-08-14 21:48:45 +02:00
<p class="schedule-info">
Version: <span class="schedule-version">{{ .version }}</span>
<br>Zeitangaben in <span class="schedule-timezone">{{ .timezone }}</span>
2022-08-14 21:48:45 +02:00
</p>
<div class="schedule-days">
{{ range .days }}
<a href="#{{ . }}">{{ . }}</a>&middot;
2022-08-14 21:48:45 +02:00
{{ end }}
<a href="#">zurück nach oben</a>
</div>
<div class="schedule">
<div class="schedule-grid schedule-timeline" style="--span: {{ .span }}">
2022-08-14 21:48:45 +02:00
<h3 class="schedule-title"></h3>
{{ $lastDate := "" }}
{{ range .timeline }}
<div class="schedule-time" style="--start: {{ .start }}">
{{ if ne .date $lastDate }}
<div class="schedule-date" id="{{ .date }}">{{ .date }}</div>
2022-08-14 21:48:45 +02:00
{{ end }}
{{ .time }}
2022-08-14 21:48:45 +02:00
</div>
{{ $lastDate = .date }}
2022-08-14 21:48:45 +02:00
{{ end }}
</div>
{{ range $name, $events := .rooms }}
2022-08-14 21:48:45 +02:00
<div class="schedule-grid schedule-room">
<h3 class="schedule-title">{{ $name }}</h3>
{{ range $events }}
<a class="schedule-event" href="{{ .url }}" style="--start: {{ .start }};--end: {{ .end }}" target="_blank">
2022-08-14 21:48:45 +02:00
<div class="schedule-event-time">
<span>{{ .start_time }}</span>
2022-08-14 21:48:45 +02:00
<span>&ndash;</span>
<span>{{ .end_time }}</span>
2022-08-14 21:48:45 +02:00
</div>
<div class="schedule-event-detail">
<h4 class="schedule-title" title="{{ .title }}">{{ .title }}</h4>
<p class="schedule-speaker" title="{{ .speaker }}">{{ .speaker }}</p>
2022-08-14 21:48:45 +02:00
</div>
</a>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}