Newer
Older
{% assign username = page.url | replace: '/people/', '' | replace: '/', '' %}
<div class="col s12 m5 right">
<div class="card">
<div class="card-image">
<img src="/{{page.pic}}" width="300"/>
</div>
<div class="card-content">
<span class="card-title">{{ page.fullname }}</span>
<hr />
{% assign role = site.roles | where: "id", page.role %}
{% assign role = role[0] %}
{% unless page.end_date %}
since
{% endunless %}
{% if page.end_date %}
-
{% endif %}
{% endif %}
{% if page.affiliation %}
<hr />
{{ page.affiliation }}
{% endif %}
<hr />
<!-- Projects -->
{% assign projects = site.pages | where: "layout", "project" | where: "active", true %}
{% for project in projects %}
{% if project.people contains username %}
{% assign pid = project.url | replace: '/projects/', '' | replace: '/', '' %}
{% include project_chip.html project=pid %}
{% endif %}
{% endfor %}
<hr />
<!-- Systems -->
{% assign systems = site.pages | where: "layout", "system" %}
{% for system in systems %}
{% unless system.end_date %}
{% if system.people contains username %}
{% assign sid = system.url | replace: '/systems/', '' | replace: '/', '' %}
{% include system_chip.html system=sid %}
{% endif %}
{% endunless %}
{% endfor %}
</div>
<div class="card-action">
{% if page.website %}
<a target="_blank" href="{{page.website}}">Website</a>
{% endif %}
<a href="http://kwarc.github.io/bibs/{{ username }}/">Publications</a>
{% elsif page.publink %}
<a href="{{page.publink}}">Publications</a>
{% endif %}