-
Notifications
You must be signed in to change notification settings - Fork 1
/
authors.html
41 lines (36 loc) · 1.41 KB
/
authors.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
---
layout: page
title: "Authors"
description: "Interdisciplinary, data-driven, experts"
header-img: "img/authors.jpg"
---
{% for author in site.data.authors %}
<!-- Row break point -->
{% assign row_start = forloop.index | modulo:2 %}
{% if row_start == 1 %} <div class="row"> {% endif %}
<div class="post-preview col-lg-5 col-lg-offset-1">
<img src="{{ author[1].pic | prepend: site.baseurl}}" style="width:128px;height:128px;border-radius:70px">
{% if author[1].title.size > 0 %}
{{ author[1].name }} - {{ author[1].title }}<br>
{% else %}
{{ author[1].name }}<br>
{% endif %}
{% if author[1].github.size > 0 %}
<a href="{{ author[1].github }}">GitHub <i class="fa fa-github" aria-hidden="true"></i></a> |
{% endif %}
<a href="{{ author[1].linkedin }}">Linked <i class="fa fa-linkedin-square" aria-hidden="true"></i></a>
<br><strong>Posts:</strong><br>
<ul>
{% for post in site.posts %}
{% if post.authors contains author[1].id %}
<li ><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
<!-- This makes sure the hr tags behave well in all sizes and don't duplicate the bottom one -->
{% if forloop.length != forloop.index %}<hr class="hidden-lg"> {% endif %}
{% if row_start != 1 %} </div>
{% if forloop.length != forloop.index %}<hr class="hidden-md hidden-xs hidden-sm"> {% endif %}
{% endif %}
{% endfor %}