Skip to content

Commit b285aa5

Browse files
committed
feat: add lab name to people page
1 parent 8dd5548 commit b285aa5

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

_layouts/people-category.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ <h2 class="category-header">{{ category }}</h2>
6464

6565
{% assign split_professional_title = person.professional_title %}
6666

67+
68+
{% comment %} Get last name for lab link {% endcomment %}
69+
{% assign full_name = person.name %}
70+
{% assign name_array = full_name | split: " " %}
71+
{% assign last_name = name_array | last %}
72+
6773
<!-- Isolate the PhD part of the professional_title -->
6874
{% comment %} {% assign split_professional_title = person.professional_title | split: "," %}
6975

@@ -108,12 +114,21 @@ <h2 class="category-header">{{ category }}</h2>
108114
<span class="current_position">{{ person.current_position }}</span>
109115
{% endif %}
110116
</span>
117+
{% if person.additional_links.organization %}
118+
<span class="organization">
119+
<a href="{{ person.additional_links.organization }}" target="_blank">
120+
[{{ last_name }} Lab]
121+
</a>
122+
</span>
123+
{% endif %}
111124
</p>
112125
</div>
113126
</div>
114127
{% endif %}
115128
</div>
116129
{% endfor %}
130+
131+
{% comment %} Current Members: AKA no end date {% endcomment %}
117132
{% for person in items_without_end_date %}
118133
<div class="person-container" data-person="{{ person.name }}">
119134

_sass/pages/_people.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
flex-direction: column;
4343
justify-content: start;
4444
align-items: flex-start;
45-
max-width: 80%;
45+
max-width: 85%;
4646
padding: 0px 20px 0px;
4747
gap: 5px;
4848

0 commit comments

Comments
 (0)