Skip to content

Commit 889fb8f

Browse files
authored
Update profiles.liquid
1 parent 7f6a307 commit 889fb8f

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

_layouts/profiles.liquid

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,41 @@ layout: page
77

88
<!-- Faculty Header -->
99
<h2>Faculty</h2>
10-
{% for profile in page.profiles %}
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>
29-
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 %}
10+
<div class="row">
11+
{% for profile in page.profiles %}
12+
{% if profile.type == 'faculty' %}
13+
<div class="col-md-12"> <!-- Full-width for each faculty member -->
14+
<div class="row shadow-box">
15+
<div class="col-md-4 text-center"> <!-- Profile image on the left -->
16+
{% if profile.image %}
17+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
18+
{% if profile.image_circular %}
19+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
20+
{% else %}
21+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
22+
{% endif %}
23+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 20vw, 50vw"{% endcapture %}
24+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
25+
{% endif %}
26+
{% if profile.more_info %}
27+
<div class="more-info">{{ profile.more_info }}</div>
28+
{% endif %}
29+
</div>
30+
<div class="col-md-8"> <!-- Description on the right -->
31+
<div class="clearfix">
32+
{% if profile.content %}
33+
{% capture profile_content %}{% include_relative {{ profile.content }} %}{% endcapture %}
34+
{{ profile_content | markdownify }}
35+
{% else %}
36+
{{ content }}
37+
{% endif %}
38+
</div>
39+
</div>
40+
</div>
3741
</div>
38-
</div>
39-
{% endif %}
40-
{% endfor %}
42+
{% endif %}
43+
{% endfor %}
44+
</div>
4145

4246
<!-- Students Header -->
4347
<h2>Students</h2>
@@ -46,6 +50,7 @@ layout: page
4650
{% if profile.type == 'student' %}
4751
<div class="col-md-4">
4852
<div class="shadow-box text-center">
53+
4954
{% if profile.image %}
5055
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
5156
{% if profile.image_circular %}

0 commit comments

Comments
 (0)