Skip to content

Commit

Permalink
Support for cicular image (alshedivat#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohandebsarkar authored and pecey committed Jan 27, 2023
1 parent 3ed7726 commit b66b401
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _layouts/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ <h1 class="post-title">
<div class="profile float-{%- if page.profile.align == 'left' -%}left{%- else -%}right{%- endif -%}">
{%- if page.profile.image %}
{%- assign profile_image_path = page.profile.image | prepend: 'assets/img/' -%}

{% if page.profile.image_cicular %}
{%- assign profile_image_class = "img-fluid z-dept-1 rounded-circle" -%}
{% else %}
{%- assign profile_image_class = "img-fluid z-dept-1 rounded" -%}
{% endif %}

{% include figure.html
path=profile_image_path
class="img-fluid z-dept-1 rounded"
class=profile_image_class
alt=page.profile.image -%}
{% endif -%}
{%- if page.profile.address %}
Expand Down

0 comments on commit b66b401

Please sign in to comment.