forked from iluwatar/java-design-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.html
More file actions
36 lines (36 loc) · 1.56 KB
/
author.html
File metadata and controls
36 lines (36 loc) · 1.56 KB
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
<!-- Parameters:
- include.author: short name of the author (mo3, ilu, npa, ...) as seen in the _data/people.yml file
used to get the informations from site.data.people[include.author]
-->
<div id="author-info" class="author-info">
{% assign author = site.data.people[include.author] %}
{% if author.github %}
<img class="author-avatar" src="https://avatars.githubusercontent.com/{{ author.github }}" alt="Github User Avatar">
{% endif %}
<span>by {{ author.name }}</span>
{% if author.description %}
<p>{{ author.description }}</p>
{% endif %}
<div class="author-social-buttons">
{% if author.github %}
<a class="icon-link round-corner github fill" href="https://github.com/{{ author.github }}">
<span class="fa fa-github"></span>
</a>
{% endif %}
{% if author.facebook %}
<a class="icon-link round-corner facebook fill" href="https://www.facebook.com/{{ author.facebook }}">
<span class="fa fa-facebook"></span>
</a>
{% endif %}
{% if author.twitter %}
<a class="icon-link round-corner twitter fill" href="https://twitter.com/{{ author.twitter }}">
<span class="fa fa-twitter"></span>
</a>
{% endif %}
{% if author.linkedin %}
<a class="icon-link round-corner linkedin fill" href="https://www.linkedin.com/in/{{ author.linkedin }}">
<span class="fa fa-linkedin"></span>
</a>
{% endif %}
</div>
</div>