-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmember-item.html
29 lines (27 loc) · 988 Bytes
/
member-item.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% assign cover = member.cover %}
{% unless cover %}
{% assign cover = "assets/images/members/" | append: member.name | append: ".webp" %}
{% endunless %}
<div class="member card text-white">
<img src="{{ cover }}" class="card-img" onerror="this.src='{{ site.defaultCover }}'">
<div class="card-img-overlay">
<p class="card-title">
{{ member.name }}
{% if member.mail %}
<small><a href="mailto:{{ member.mail }}">{{ member.mail }}</a></small></p>
{% endif %}
</p>
{% if member.work %}
<p class="card-text">
<i data-feather="briefcase"></i>{{ member.work | array_to_sentence_string }}
</p>
{% elsif member.research %}
<p class="card-text">
<i data-feather="bookmark"></i>{{ member.research | array_to_sentence_string }}
</p>
{% endif %}
</div>
<div class="d-sm-none" data-dismiss>
<i data-feather="x"></i>
</div>
</div>