{%- 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.html
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 %}