{{/* 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 }}
{{ .start }} ({{ .duration }}) ‧ {{ .room }} {{ with .track }}‧ {{ . }}{{ end }}
{{ if reflect.IsSlice .persons.person }} {{ delimit .persons.person ", " }} {{ else }} {{ .persons.person }} {{ end }}
{{ with .subtitle }}{{ . | markdownify }}
{{ end }} {{ with .abstract }}