{{ define "main" }}

{{ .Title }}

{{ with .Params.description }}

{{ . }}

{{ end }}
{{ if .Content }}
{{ .Content }}
{{ end }}
{{ range sort site.Data.talks "date" "desc" }} {{ $year := dateFormat "2006" .date }} {{ $presenterNames := slice }} {{ $presenterCompanies := slice }} {{ range .presenters }} {{ $presenterNames = $presenterNames | append .name }} {{ if .company }} {{ $presenterCompanies = $presenterCompanies | append .company }} {{ end }} {{ end }} {{ $searchString := printf "%s %s %s %s %s" .title .event $year (delimit $presenterNames " ") (delimit $presenterCompanies " ") | lower }}
{{ if eq .type "case-study" }} {{ if and .links.video (not .links.article) }} {{ T "talks_filter_case_studies" }} {{ else }} {{ T "talks_filter_case_studies" }} {{ end }} {{ else if eq .type "tutorial" }} {{ T "talks_filter_tutorials" }} {{ else }} {{ T "talks_filter_videos" }} {{ end }}
{{ dateFormat "2006" .date }}
{{ .title }}
{{ if and .links.article (not .links.video) }} {{ else }} {{ end }} {{ .event }}
{{ if .description }}

{{ .description }}

{{ end }} {{ if .presenters }}
{{ T "talks_label_contributors" }}
{{ range .presenters }} {{ .name }} {{ if .company }} ({{ .company }}) {{ end }} {{ end }}
{{ end }}
{{ if .links.details }} {{ T "talks_btn_details" }} {{ end }} {{ if .links.slides }} {{ T "talks_btn_slides" }} {{ end }} {{ if .links.materials }} {{ T "talks_btn_materials" }} {{ end }} {{ if not (or .links.details .links.slides .links.materials) }}   {{ end }}
{{ end }}
{{ end }}