Skip to content

Commit

Permalink
Support for cicular image (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohandebsarkar authored Jun 26, 2022
1 parent bb5ef8f commit bcd43a1
Show file tree
Hide file tree
Showing 2 changed files with 9 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
1 change: 1 addition & 0 deletions _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ subtitle: <a href='#'>Affiliations</a>. Address. Contacts. Moto. Etc.
profile:
align: right
image: prof_pic.jpg
image_cicular: false # crops the image to make it circular
address: >
<p>555 your office number</p>
<p>123 your address street</p>
Expand Down

0 comments on commit bcd43a1

Please sign in to comment.