Skip to content

Commit bcd43a1

Browse files
Support for cicular image (alshedivat#728)
1 parent bb5ef8f commit bcd43a1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

_layouts/about.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ <h1 class="post-title">
1616
<div class="profile float-{%- if page.profile.align == 'left' -%}left{%- else -%}right{%- endif -%}">
1717
{%- if page.profile.image %}
1818
{%- assign profile_image_path = page.profile.image | prepend: 'assets/img/' -%}
19+
20+
{% if page.profile.image_cicular %}
21+
{%- assign profile_image_class = "img-fluid z-dept-1 rounded-circle" -%}
22+
{% else %}
23+
{%- assign profile_image_class = "img-fluid z-dept-1 rounded" -%}
24+
{% endif %}
25+
1926
{% include figure.html
2027
path=profile_image_path
21-
class="img-fluid z-dept-1 rounded"
28+
class=profile_image_class
2229
alt=page.profile.image -%}
2330
{% endif -%}
2431
{%- if page.profile.address %}

_pages/about.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ subtitle: <a href='#'>Affiliations</a>. Address. Contacts. Moto. Etc.
77
profile:
88
align: right
99
image: prof_pic.jpg
10+
image_cicular: false # crops the image to make it circular
1011
address: >
1112
<p>555 your office number</p>
1213
<p>123 your address street</p>

0 commit comments

Comments
 (0)