Skip to content

Commit 005f6e3

Browse files
authored
Update profiles.liquid
1 parent 56b51e0 commit 005f6e3

File tree

1 file changed

+59
-24
lines changed

1 file changed

+59
-24
lines changed

_layouts/profiles.liquid

Lines changed: 59 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,68 @@ layout: page
44
<div class="post">
55
<article>
66
{% if page.profiles %}
7+
8+
<!-- Faculty Header -->
9+
<h2>Faculty</h2>
710
{% for profile in page.profiles %}
8-
<hr>
9-
<div class="profile float-{% if profile.align == 'left' %}left{% else %}right{% endif %}">
10-
{% if profile.image %}
11-
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
12-
{% if profile.image_circular %}
13-
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
14-
{% else %}
15-
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
16-
{% endif %}
17-
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
18-
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
19-
{% endif %}
20-
{% if profile.more_info %}
21-
<div class="more-info">{{ profile.more_info }}</div>
22-
{% endif %}
23-
</div>
11+
{% if profile.type == 'faculty' %}
12+
<hr>
13+
<div class="shadow-box">
14+
<div class="profile float-{% if profile.align == 'left' %}left{% else %}right{% endif %}">
15+
{% if profile.image %}
16+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
17+
{% if profile.image_circular %}
18+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
19+
{% else %}
20+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
21+
{% endif %}
22+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 20vw, 50vw"{% endcapture %}
23+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
24+
{% endif %}
25+
{% if profile.more_info %}
26+
<div class="more-info">{{ profile.more_info }}</div>
27+
{% endif %}
28+
</div>
2429

25-
<div class="clearfix">
26-
{% if profile.content %}
27-
{% capture profile_content %}{% include_relative {{ profile.content }} %}{% endcapture %}
28-
{{ profile_content | markdownify }}
29-
{% else %}
30-
{{ content }}
31-
{% endif %}
32-
</div>
30+
<div class="clearfix">
31+
{% if profile.content %}
32+
{% capture profile_content %}{% include_relative {{ profile.content }} %}{% endcapture %}
33+
{{ profile_content | markdownify }}
34+
{% else %}
35+
{{ content }}
36+
{% endif %}
37+
</div>
38+
</div>
39+
{% endif %}
3340
{% endfor %}
41+
42+
<!-- Students Header -->
43+
<h2>Students</h2>
44+
<div class="row">
45+
{% for profile in page.profiles %}
46+
{% if profile.type == 'student' %}
47+
<div class="col-md-4">
48+
<div class="shadow-box text-center">
49+
{% if profile.image %}
50+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
51+
{% if profile.image_circular %}
52+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
53+
{% else %}
54+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
55+
{% endif %}
56+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 20vw, 50vw"{% endcapture %}
57+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
58+
{% endif %}
59+
<div class="profile-name">{{ profile.name }}</div> <!-- Name at the bottom -->
60+
{% if profile.more_info %}
61+
<div class="more-info">{{ profile.more_info }}</div>
62+
{% endif %}
63+
</div>
64+
</div>
65+
{% endif %}
66+
{% endfor %}
67+
</div>
68+
3469
{% endif %}
3570
</article>
3671
</div>

0 commit comments

Comments
 (0)