Skip to content

Commit 0398190

Browse files
author
Dhruva Shaw
committed
added new
1 parent bab1984 commit 0398190

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

_includes/profiles.liquid

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<div class="post">
2+
<article>
3+
{% if page.profiles %}
4+
{% for profile in page.profiles %}
5+
<hr>
6+
<div class="profile float-{% if profile.align == 'left' %}left{% else %}right{% endif %}">
7+
{% if profile.image %}
8+
{% assign profile_image_path = profile.image | prepend: 'assets/img/' %}
9+
{% if profile.image_circular %}
10+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded-circle' %}
11+
{% else %}
12+
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
13+
{% endif %}
14+
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
15+
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
16+
{% endif %}
17+
{% if profile.more_info %}
18+
<div class="more-info">{{ profile.more_info }}</div>
19+
{% endif %}
20+
</div>
21+
22+
<div class="clearfix">
23+
{% if profile.content %}
24+
{% capture profile_content %}{% include_relative {{ profile.content }} %}{% endcapture %}
25+
{{ profile_content | markdownify }}
26+
{% else %}
27+
{{ content }}
28+
{% endif %}
29+
</div>
30+
{% endfor %}
31+
{% endif %}
32+
</article>
33+
</div>

0 commit comments

Comments
 (0)