{{- $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 }}
{{ $profile.location }}
{{- if $profile.description }}{{ $profile.description }}
{{- end }} {{- if $profile.github }} {{- end }} {{- if $email }} {{- end }} {{- if (or $matrix $discord) }}{{- if $matrix }} {{ $profile.matrix }} {{- end }} {{- if $discord }} {{ $profile.discord.tag }} {{- end }}
{{- end }} {{- end }} {{- end }}