Skip to content

Commit 969d6ec

Browse files
committed
alumni section
1 parent 2408fbf commit 969d6ec

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

_layouts/profiles.liquid

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,47 @@ layout: page
6262
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
6363
{% endif %}
6464
<div class="profile-name">{{ profile.name }}</div> <!-- Name at the bottom -->
65+
{% if profile.degree %}
66+
<div class="degree-name">{{ profile.degree }}</div> <!-- Degree name -->
67+
{% endif %}
6568
{% if profile.more_info %}
6669
<div class="more-info">{{ profile.more_info }}</div>
6770
{% endif %}
6871
</div>
6972
</div>
7073
{% endif %}
7174
{% endfor %}
75+
</div>
7276

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

78108
{% endif %}

_pages/profiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ profiles:
266266
</div>
267267

268268

269-
<!-- - align: left
269+
- align: left
270270
type: alumni
271271
name: Arka Daw
272272
degree: PhD Student
@@ -391,7 +391,7 @@ profiles:
391391
</p>
392392
</div>
393393

394-
-->
394+
395395

396396

397397
---

0 commit comments

Comments
 (0)