{{- $key := .Get "name" }} {{- $profile := index $.Site.Data.profiles.people $key }} {{- if $profile }} {{- $team := "" }} {{- if $profile.team }} {{- $team = index $.Site.Data.profiles.teams $profile.team }} {{- end }} {{- $email := false }} {{- if $profile.email }}{{ $email = true }}{{ end }} {{- $matrix := false }} {{- if $profile.matrix }}{{ $matrix = true }}{{ end }} {{- $discord := false }} {{- if (and $profile.discord $profile.discord.id) }}{{ $discord = true }}{{ end }} {{- if $profile.github }}
{{- if $team }}

{{ $team.display }} Team

{{- end }}

{{ $profile.location }}

{{- if $profile.description }}

{{ $profile.description }}

{{- end }} {{- if $profile.github }}

{{ $profile.github }}

{{- end }} {{- if $email }}

{{ $profile.email }}

{{- end }} {{- if (or $matrix $discord) }}

{{- if $matrix }} {{ $profile.matrix }} {{- end }} {{- if $discord }} {{ $profile.discord.tag }} {{- end }}

{{- end }} {{- end }} {{- end }}