Skip to content

Commit 2f1308f

Browse files
author
Dhruva Shaw
committed
new
1 parent 0de4c9c commit 2f1308f

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

_projects/mcba.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,34 @@ Here is the protocol(steps) to reproduce our work with ease.
168168

169169
---
170170

171-
{% include profiles.liquid %}
171+
<article>
172+
{% if page.profiles %}
173+
{% for profile in page.profiles %}
174+
<hr>
175+
<div class="profile float-{% if profile.align == 'left' %}left{% else %}right{% endif %}">
176+
{% if profile.image %}
177+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
178+
{% if profile.image_circular %}
179+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
180+
{% else %}
181+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
182+
{% endif %}
183+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
184+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
185+
{% endif %}
186+
{% if profile.more_info %}
187+
<div class="more-info">{{ profile.more_info }}</div>
188+
{% endif %}
189+
</div>
190+
191+
<div class="clearfix">
192+
{% if profile.content %}
193+
{% capture profile_content %}{% include_relative {{ profile.content }} %}{% endcapture %}
194+
{{ profile_content | markdownify }}
195+
{% else %}
196+
{{ content }}
197+
{% endif %}
198+
</div>
199+
{% endfor %}
200+
{% endif %}
201+
</article>

0 commit comments

Comments
 (0)