{{/* load schedule file from global resources in assets */}} {{ $data := "" }} {{ $path := index .Params 0 }} {{ with .Page.Resources.Get $path }} {{ with unmarshal . }} {{ $data = . }} {{ end }} {{ else }} {{ errorf "Unable to get global resource %q" $path }} {{ end }} {{/* display each day's events */}} {{ range $data.day }} {{/* for each day -- assumes day is a slice (array) */}} {{ $date := (index . "-date") }} {{ $dayEvents := slice }}

{{ index . "-date" }}

{{ range (compare.Conditional (reflect.IsSlice .room) .room (slice .room)) }} {{/* for each room, ensuring room is a slice (array) */}} {{ $roomname := (index . "-name") }} {{ range $event := (compare.Conditional (reflect.IsSlice .event) .event (slice .event)) }} {{/* for each event, ensuring event is a slice (array) */}} {{/* add date & room to event, append to dayEvents */}} {{ $event = $event | merge (dict "date" $date "room" $roomname) }} {{ $dayEvents = $dayEvents | append $event }} {{ end }} {{ end }} {{ range sort $dayEvents "start" }} {{/* display all day's events ordered by start time */}}

{{ .title }}

{{ .start }} ({{ .duration }}) ‧ {{ .room }} {{ with .track }}‧ {{ . }}{{ end }}

{{ if reflect.IsSlice .persons.person }} {{ delimit .persons.person ", " }} {{ else }} {{ .persons.person }} {{ end }}

{{ with .subtitle }}

{{ . | markdownify }}

{{ end }} {{ with .abstract }}
Abstract {{ . | $.Page.RenderString (dict "display" "block") }}
{{ end }} {{ end }}
{{ end }}