-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpostauthor.html
27 lines (24 loc) · 1.14 KB
/
postauthor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% for author in page.postauthors %}
{% assign postauthor = author | default: author %}
{% assign name = postauthor.name %}
{% assign email = postauthor.email %}
{% assign website = postauthor.website %}
{% assign image = postauthor.image %}
{% if image %}
{% capture author_name %}
<a itemprop="sameAs" content="{{ postauthor.website }}" href="{{ postauthor.website }}" rel="me noopener noreferrer" style="vertical-align:top;"><img src="/assets/images/author_images/{{ postauthor.image }}" style="width:1em;margin-right:.5em;border-radius: 50%;" alt="Author Icon" class="orcid-icon">{{ postauthor.name }}</a>
{% endcapture %}
{% else %}
{% assign author_name = postauthor.name %}
{% endif %}
{% if email %}
{% assign email = email | remove: "mailto:" %}
{% capture email_link %}
<a href="mailto:{{ email }}" title='{{ email }}'><span><i class="elastic-fai fas fa-envelope"></i></span></a>
{% endcapture %}
{% else %}
{% assign email_link = '' %}
{% endif %}
{% if forloop.first %}Author: {% endif %}{{ author_name }} {{ email_link }}{% unless forloop.last %}, {% endunless %}
{% endfor %}
<br><br>