Skip to content

Commit b2c6e21

Browse files
committed
alumni
1 parent ea2eae8 commit b2c6e21

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

_layouts/profiles.liquid

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,34 @@ layout: page
7171
{% endfor %}
7272
</div>
7373

74+
<!-- Alumni Header -->
75+
<h2>Alumni</h2>
76+
<div class="row">
77+
{% for profile in page.profiles %}
78+
{% if profile.type == 'alumni' %}
79+
<div class="col-md-4">
80+
<div class="shadow-box text-center">
81+
82+
{% if profile.image %}
83+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
84+
{% if profile.image_circular %}
85+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
86+
{% else %}
87+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
88+
{% endif %}
89+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 20vw, 50vw"{% endcapture %}
90+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
91+
{% endif %}
92+
<div class="profile-name">{{ profile.name }}</div> <!-- Name at the bottom -->
93+
{% if profile.more_info %}
94+
<div class="more-info">{{ profile.more_info }}</div>
95+
{% endif %}
96+
</div>
97+
</div>
98+
{% endif %}
99+
{% endfor %}
100+
</div>
101+
74102
{% endif %}
75103
</article>
76104
</div>

0 commit comments

Comments
 (0)