diff --git a/_layouts/profiles.liquid b/_layouts/profiles.liquid index e16ac2974d9d..11cb46c6241a 100644 --- a/_layouts/profiles.liquid +++ b/_layouts/profiles.liquid @@ -3,9 +3,43 @@ layout: page ---
- {% if page.profiles %} - {% for profile in page.profiles %} -
+ {% if page.profiles_pi %} + {% for profile in page.profiles_pi %} + +

PI

+
+
+ {% if profile.image %} + {% assign profile_image_path = profile.image | prepend: 'assets/img/' %} + {% if profile.image_circular %} + {% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %} + {% else %} + {% assign profile_image_class = 'img-fluid z-depth-1 rounded' %} + {% endif %} + {% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 30vw, 95vw"{% endcapture %} + {% include figure.liquid path = profile_image_path class = profile_image_class sizes = sizes alt = profile.image %} + {% endif %} + {% if profile.more_info %} +
{{ profile.more_info }}
+ {% endif %} +
+ +
+ {% if profile.content %} + {% capture profile_content %}{% include_relative {{ profile.content }} %}{% endcapture %} + {{ profile_content | markdownify }} + {% else %} + {{ content }} + {% endif %} +
+ {% endfor %} + {% endif %} + + {% if page.profiles_postdoc %} + {% for profile in page.profiles_postdoc %} + +

Postdoc

+
{% if profile.image %} {% assign profile_image_path = profile.image | prepend: 'assets/img/' %} diff --git a/_pages/profiles.md b/_pages/people.md similarity index 60% rename from _pages/profiles.md rename to _pages/people.md index d4de954fa635..f4050152142d 100644 --- a/_pages/profiles.md +++ b/_pages/people.md @@ -6,20 +6,27 @@ description: members of the lab or group nav: true nav_order: 7 -profiles: +profiles_pi: # if you want to include more than one profile, just replicate the following block # and create one content file for each profile inside _pages/ - align: left image: prof_pic.jpg - content: about_einstein.md + content: people/template.md image_circular: false # crops the image to make it circular more_info: > -

Albert Einstein, The man

+

Matt Nolan, PI

- align: left image: prof_pic.jpg - content: about_harry.md + content: people/template.md image_circular: false # crops the image to make it circular more_info: > -

Dr Harry Clark, Postdoc

+

Gulsen Surmeli, PI

+profiles_postdoc: + - align: left + image: prof_pic.jpg + content: people/harry.md + image_circular: false # crops the image to make it circular + more_info: > +

Harry Clark, Postdoc

--- diff --git a/_pages/about_harry.md b/_pages/people/harry.md similarity index 100% rename from _pages/about_harry.md rename to _pages/people/harry.md diff --git a/_pages/about_einstein.md b/_pages/people/template.md similarity index 100% rename from _pages/about_einstein.md rename to _pages/people/template.md