Skip to content

Commit 3bd8203

Browse files
committed
new profile sections
1 parent d6453fe commit 3bd8203

File tree

2 files changed

+352
-57
lines changed

2 files changed

+352
-57
lines changed

_layouts/profiles.liquid

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,43 @@ layout: page
5757
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
5858
{% endif %}
5959
<div class="profile-name">{{ profile.name }}</div> <!-- Name at the bottom -->
60+
<div class="profile-degree">{{ profile.degree }}</div> <!-- Name at the bottom -->
6061
{% if profile.more_info %}
6162
<div class="more-info">{{ profile.more_info }}</div>
6263
{% endif %}
6364
</div>
6465
</div>
6566
{% endif %}
6667
{% endfor %}
68+
69+
70+
<!-- Alumni Header -->
71+
<h2>Alumni</h2>
72+
<div class="row">
73+
{% for profile in page.profiles %}
74+
{% if profile.type == 'alumni' %}
75+
<div class="col-md-4">
76+
<div class="shadow-box text-center">
77+
{% if profile.image %}
78+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
79+
{% if profile.image_circular %}
80+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
81+
{% else %}
82+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
83+
{% endif %}
84+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 20vw, 50vw"{% endcapture %}
85+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
86+
{% endif %}
87+
<div class="profile-name">{{ profile.name }}</div> <!-- Name at the bottom -->
88+
<div class="profile-degree">{{ profile.degree }}</div> <!-- Name at the bottom -->
89+
{% if profile.more_info %}
90+
<div class="more-info">{{ profile.more_info }}</div>
91+
{% endif %}
92+
</div>
93+
</div>
94+
{% endif %}
95+
{% endfor %}
96+
6797
</div>
6898

6999
{% endif %}

0 commit comments

Comments
 (0)