Skip to content
Snippets Groups Projects
Commit bcbc9126 authored by Shale XIONG's avatar Shale XIONG
Browse files

Change the person list in research pages and teaching pages.

parent 52591448
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,11 @@ defaults:
path: "research"
values:
layout: research
-
scope:
path: "teaching"
values:
layout: teaching
scholar:
source: publications
......
<div class="people">
{% for person in include.people %}{% assign row = forloop.index | modulo: include.people.size %}
{% if row == 1%}<div class="card-deck-wrapper"><div class="card-deck">{% endif %}
<div class="card">
<div class="card-block text-xs-center people">
<a href="{{ person.url }}">
{% include person-photo-small.html %}
<h6 class="card-title small-title">{{ person.firstname }}<br/>{{ person.lastname }}</h6>
</a>
</div>
</div>
{% if row == 0 or forloop.last %}</div></div>{% endif %}
{% endfor %}
</div>
{% assign path = person.url | prepend: '/images' | replace: '.html','.jpg' %}
{% assign file = site.static_files | where: "path", path | first %}
{% if file %}
<img class="person-img-small img-circle" src="{{ file.path }}" alt="Photo of {{ person.firstname }} {{ person.lastname }}" />
{% else %}
<div class="person-img-small fa-stack fa-5x"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-user fa-stack-1x fa-inverse"></i></div>
{% endif %}
......@@ -6,11 +6,9 @@ layout: page
{% assign people = site.people | where_exp: "person", "person.projects contains page.project_id" %}
{% if people.size > 0 %}
<h3>People</h3>
{% include person-cards.html people=people %}
{% include person-cards-small.html people=people %}
{% endif %}
{% if page.project_id != "sl" %}
<h3>Recent Publications</h3>
{% bibliography -q @*[project ~= {{page.project_id}}] --max 10 %}
{% endif %}
---
layout: page
---
{{ content }}
{% assign people = site.people | where_exp: "person", "person.projects contains page.project_id" %}
{% if people.size > 0 %}
<h3>People</h3>
{% include person-cards-small.html people=people %}
{% endif %}
......@@ -250,15 +250,25 @@ h6, .h6 {
.card-deck {
margin-bottom: 1.25rem;
}
.person-img {
margin-left: auto;
margin-right: auto;
width: 160px;
text-align: center;
display: block;
}
.person-img-small {
margin-left: auto;
margin-right: auto;
width: 60px;
text-align: center;
display: block;
}
.small-title {
font-size:small;
}
}
.person-img {
margin-left: auto;
margin-right: auto;
width: 160px;
text-align: center;
display: block;
}
/*
* Blog posts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment