@@ -7,37 +7,41 @@ layout: page
7
7
8
8
<!-- Faculty Header -->
9
9
<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 >
37
41
</div >
38
- </ div >
39
- {% endif %}
40
- {% endfor %}
42
+ {% endif %}
43
+ {% endfor %}
44
+ </ div >
41
45
42
46
<!-- Students Header -->
43
47
<h2 >Students</h2 >
@@ -46,6 +50,7 @@ layout: page
46
50
{% if profile .type == 'student' %}
47
51
<div class =" col-md-4" >
48
52
<div class =" shadow-box text-center" >
53
+
49
54
{% if profile .image %}
50
55
{% assign profile_image_path = profile .image | prepend: 'assets/img/' %}
51
56
{% if profile .image_circular %}
0 commit comments