-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor-box.html
More file actions
18 lines (18 loc) · 888 Bytes
/
author-box.html
File metadata and controls
18 lines (18 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- Author Box -->
{% if page.author %}
{% if site.authorbox == "enabled" %}
<div class="d-flex authorbox align-items-center">
<div class="col-md-2 mr-4 text-center">
{% if author.avatar %}
<img class="author-thumb" src="{{site.baseurl}}/{{ author.avatar }}" alt="{{ author.display_name }}">
{% else %}
<img class="author-thumb" src="https://www.gravatar.com/avatar/{{ author.gravatar }}?s=250&d=mm&r=x" alt="{{ author.display_name }}">
{% endif %}
</div>
<div class="col-md-10">
<a target="_blank" class="text-dark h4" href="{{ author.web }}">About {{ author.display_name }}</a> <a target="_blank" href="{{ author.twitter }}" class="btn-sm"><i class="fab fa-twitter"></i></a>
<span class="author-description d-block mt-2">{{ author.description }}</span>
</div>
</div>
{% endif %}
{% endif %}