{{ define "main" }}
{{ $sections := slice . }} {{ if .Sections }} {{ $sections = .Sections.ByDate.Reverse }} {{ end }} {{ range $sections }}

{{ .Title }}

{{ range .RegularPages.ByDate }}
{{ $image := .Params.thumbnail }} {{ if $image }} {{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mb-3 w-full rounded") }} {{ end }}

{{ .Title }}

{{ with .Params.mediatype }}
{{ if eq . "talk" }}Talk{{ end }} {{ if eq . "demo" }}Demo{{ end }} {{ if eq . "podcast" }}Podcast{{ end }} {{ if eq . "chat" }}Fireside Chat{{ end }}
{{ end }}
{{ range $i, $s := .Params.speakers -}} {{ if gt $i 0 }}, {{ end }}{{ $s.name }} {{- end }}

{{ .Params.description | markdownify }}

{{ end }}
{{ range .Params.Notes }} {{ partial "components/bignote.html" . }} {{ end }}
{{ end }}
{{ end }}