-
Notifications
You must be signed in to change notification settings - Fork 196
/
Copy patharticle.html
58 lines (57 loc) · 2.48 KB
/
article.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% extends 'articles.html' %}
{% block articleHeader %}
<div class="date">
<time datetime="{{ publishDate }}">{{ publishDate | readableDate }}</time>
{% if lastUpdated %}
— Updated <time datetime="{{ lastUpdated }}">{{ lastUpdated | readableDate }}</time>
{% endif %}
</div>
<!-- TODO: Remove comment once tag support is enabled
<div class="tags">
{% for tag in tags %}
{% if tag != 'articles-nav' %}
<a href="{{ site.baseurl }}/articles/tags/{{ tag }}/" aria-label="{{ tag }} tag">{{ tag }}</a>
{% endif %}
{% endfor %}
</div>
-->
<div class="authors">
{% for authorId in author or defaultAuthor %}
{% set authorData = authors[authorId] %}
<figure class="author">
<img src="{{ site.baseurl }}/images/{{ authorData.image.url }}"
width="80" height="80"
{% if authorData.image.class %}class="{{ authorData.image.class }}"{% endif %}
alt="{% if authorData.image.alt !== undefined %}{{ authorData.image.alt }}{% else %}Photo of {{ authorData.name }}{% endif %}">
<div>
<figcaption>{{ authorData.name }}</figcaption>
{% if authorData.links %}
<div class="links">
{% if authorData.links.twitter %}
<a href="https://twitter.com/{{ authorData.links.twitter }}" target="_blank">
<svg aria-label="{{ authorData.name}}'s Twitter Account">
<use href="{{ site.baseurl }}/images/social/twitter.svg#twitter"></use>
</svg>
</a>
{% endif %}
{% if authorData.links.github %}
<a href="https://github.com/{{ authorData.links.github }}" target="_blank">
<svg aria-label="{{ authorData.name}}'s Github Account">
<use href="{{ site.baseurl }}/images/social/github.svg#github"></use>
</svg>
</a>
{% endif %}
{% if authorData.links.linkedin %}
<a href="https://www.linkedin.com/in/{{ authorData.links.linkedin }}/" target="_blank">
<svg aria-label="{{ authorData.name}}'s LinkedIn Account">
<use href="{{ site.baseurl }}/images/social/linkedin.svg#linkedin"></use>
</svg>
</a>
{% endif %}
</div>
{% endif %}
</div>
</figure>
{% endfor %}
</div>
{% endblock %}