{{ $title := .Params.title }} {{ $site_Pages := where .Site.Pages ".Params.type" "!=" "outcome" }}

{{ $title }} Daily Schedule

NOTE: exact session days/times are not final and can change.

{{ range $site_Pages }} {{ $page := .}} {{ if eq (printf "%T" .Params.organizers) "[]string" }} {{ range .Params.organizers}} {{ if eq . $title }} {{ $.Scratch.Add "pages" (slice $page) }} {{ end }} {{ end }} {{ else }} {{ if in $title .Params.organizers }} {{ $.Scratch.Add "pages" (slice $page) }} {{ end }} {{end }} {{ if eq (printf "%T" .Params.participants) "[]string" }} {{ range .Params.participants}} {{ if eq . $title }} {{ $.Scratch.Add "pages" (slice $page) }} {{ end }} {{ end }} {{ else }} {{ if in $title .Params.participants }} {{ $.Scratch.Add "pages" (slice $page) }} {{ end }} {{end }} {{ if eq (printf "%T" .Params.sessions) "[]string" }} {{ if in .Params.sessions $title }} {{/* add current user's sessions */}} {{ $.Scratch.Add "pages" (slice $page) }} {{ end }} {{ end }} {{ if eq (printf "%T" .Params.invited) "[]string" }} {{/* map invited */}} {{ range .Params.invited }} {{if eq $.Params.title . }} {{ $.Scratch.Add "pages" (slice $page) }} {{ end }} {{ end }} {{ end }} {{ if eq .Params.type "team" }} {{ if in .Params.members $title }} {{ $matches := where (where $site_Pages ".Params.title" "in" .Params.sessions) ".Params.type" "!=" "outcome" }} {{ range $matches }} {{ $.Scratch.Add "pages" (slice .) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if .Params.tracks }}
{{ range .Params.tracks }} {{ $track_pages := (where $site_Pages ".Params.track" . )}}
Subscribed to track {{ . }} which has {{ len $track_pages }} sessions
{{ range $track_pages}} {{ $.Scratch.Add "pages" (slice .) }} {{ end }} {{ end }}
{{ end }} {{ range .Params.sessions }} {{ $matches := (where $site_Pages ".Params.title" . ) }} {{ if $matches }} {{ $.Scratch.Add "pages" (slice (index $matches 0)) }} {{ end }} {{ end }} {{ $pages := .Scratch.Get "pages" }} {{ partial "schedule/table.html" (dict "self" . "pages" $pages ) }}