{{- $team := .team }} {{- $pages := .pages}} {{- $defaultimage := .defaultimage}} {{- $odd := .odd }} {{- $id := "team"}} {{if $team.id}} {{- $id = $team.id}} {{else if .id}} {{- $id = .id }} {{end}} {{- $members := where $pages "Params.leaveDate" "==" nil}} {{- $first := $team.first | default 4}}
{{ partial "components/title.html" $team.title }}
{{- range first $first ($members.ByParam "startDate") }}
{{ if .Params.image }} {{- partial "components/image.html" (dict "style" "avatar" "url" .Params.image "alt" .Params.name) -}} {{ else }} {{- partial "components/image.html" (dict "style" "avatar" "url" $defaultimage "alt" "Placeholder") -}} {{ end }}

{{ .Params.name }}

{{- range .Params.jobs }}

{{ . }}

{{- end }}
{{- end }}
{{ if gt $members.Len $first }} {{ partial "components/button.html" (dict "type" "text block" "url" $team.id "text" ($team.more | default "More")) }} {{ end }}