pi-www-theme-soho/layouts/partials/whole-page-fragments/team/team-member.html

35 lines
1.4 KiB
HTML
Raw Permalink Normal View History

<div class="col-md-3 col-6">
<div class="user-card">
<img class="user-img" src="{{ .image }}" alt="" />
<a {{ with .url }}href="{{ . }}"{{ end }} class="user-name">
{{ with .prefix }} {{ . }} {{ end }}
{{ .name }}{{ with .postfix }}, {{ . }} {{ end }}
</a>
{{ with .affiliation }}
<div class="user-role">
{{ . }}
</div>
{{ end }}
{{ if (ne .roles nil ) }}
{{ if and (ne (delimit .roles "") "advisor") (ne (delimit .roles "") "fellow") }}
<div class="user-position">
{{ delimit .roles " • " }}
</div>
{{ end }}
{{ end }}
{{ if eq .roles nil }}
{{ with .past_roles }}
<div class="user-position">
{{ delimit . " • " }}
</div>
{{ end }}
{{ end }}
<div class="user-social d-flex">
{{ with .email }}<a href="mailto:{{ . }}"><img src="/images/gnome-icon-hicontrast-scalable/actions/mail-mark-unread.svg" alt="" /></a>{{ end }}
2022-10-07 12:55:54 +03:00
{{ with .home }}<a href="{{ . }}"><img src="/images/gnome-icon-hicontrast-scalable/actions/go-home.svg" alt="" /></a>{{ end }}
<!-- {{ with .twitter }}<a href="https://twitter.com/{{ . }}"><img src="/images/users/twitter.svg" alt="" /></a>{{ end }} -->
<!-- {{ with .github }}<a href="https://github.com/{{ . }}"><img src="/images/users/github.svg" alt="" /></a>{{ end }} -->
</div>
</div>
</div>