Skip to content
Snippets Groups Projects
Commit d19fecca authored by Thomas Wood's avatar Thomas Wood
Browse files

People page layout, misc changes:

* Remove "About" heading
* Hide "Group Publications" heading if there are none
* Centre card on page when no main column content is available
* Remove duplication of title and names configuration
* Shunt role onto same line as title
parent 3a0ccbac
No related branches found
No related tags found
No related merge requests found
---
layout: page
layout: default
menu: false
---
<div class="row">
<div class="col-sm-12">
<h3 class="text-muted">{{ page.position }}</h3>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<div class="card">
<img class="img-circle center-block" style="width: 60%; padding: 7pt" src="{{ page.image | prepend: site.baseurl }}" alt="Photo of {{ page.firstname }} {{ page.lastname }}" />
<div class="list-group list-group-flush">
{% if page.webpage %}<a class="list-group-item" href="{{ page.webpage }}"><i class="fa fa-fw fa-globe"></i>&nbsp; Webpage</a>{% endif %}
{% if page.email %}<a class="list-group-item" href="mailto:{{ page.email }}"><i class="fa fa-fw fa-envelope-o"></i>&nbsp; {{ page.email }}</a>{% endif %}
{% if page.twitter %}<a class="list-group-item" href="https://twitter.com/{{ page.twitter }}"><i class="fa fa-fw fa-twitter"></i>&nbsp; @{{ page.twitter }}</a>{% endif %}
{% if page.github %}<a class="list-group-item" href="https://github.com/{{ page.github }}"><i class="fa fa-fw fa-github"></i>&nbsp; GitHub Profile</a>{% endif %}
<article class="post">
<header class="post-header">
<div class="row">
<div class="col-sm-12">
<h2 class="post-title">{{ page.firstname }} {{ page.lastname }}
<small class="text-muted">{{ page.position }}</small></h2>
</div>
</div>
</div>
<div class="col-sm-8">
<h3>About</h4>
{{ content }}
</header>
{% comment %} Test that we have main content to show {% endcomment %}
{% capture bibliography %}{% bibliography -q @*[author ~= {{ page.lastname }}] %}{% endcapture %}
{% assign test_bib = bibliography | strip_html | strip_newlines %}
{% assign test = test_bib | append: content | strip_html | strip_newlines %}
{% if test == "" %}{% assign card-col-class = " col-md-offset-4" %}{% endif %}
<div class="post-content">
<div class="row">
<div class="col-sm-4{{card-col-class}}">
<div class="card">
<img class="img-circle center-block" style="width: 60%; padding: 7pt" src="{{ page.image | prepend: site.baseurl }}" alt="Photo of {{ page.firstname }} {{ page.lastname }}" />
<div class="list-group list-group-flush">
{% if page.webpage %}<a class="list-group-item" href="{{ page.webpage }}"><i class="fa fa-fw fa-globe"></i>&nbsp; Webpage</a>{% endif %}
{% if page.email %}<a class="list-group-item" href="mailto:{{ page.email }}"><i class="fa fa-fw fa-envelope-o"></i>&nbsp; {{ page.email }}</a>{% endif %}
{% if page.twitter %}<a class="list-group-item" href="https://twitter.com/{{ page.twitter }}"><i class="fa fa-fw fa-twitter"></i>&nbsp; @{{ page.twitter }}</a>{% endif %}
{% if page.github %}<a class="list-group-item" href="https://github.com/{{ page.github }}"><i class="fa fa-fw fa-github"></i>&nbsp; GitHub Profile</a>{% endif %}
</div>
</div>
</div>
<h3>Group Publications</h4>
{% bibliography -q @*[author ~= {{ page.lastname }}] %}
{% if test != "" %}
<div class="col-sm-8">
{{ content }}
{% if test_bib != "" %}
<h3>Group Publications</h3>
{{ bibliography }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
</article>
---
title: Pedro da Rocha Pinto
firstname: Pedro
lastname: da Rocha Pinto
image: /images/pedro.jpg
......
---
title: Philippa Gardner
firstname: Philippa
lastname: Gardner
image: /images/gardner.jpg
......
---
title: Gian Ntzik
firstname: Gian
lastname: Ntzik
image: /images/gian.jpg
......
---
title: Azalea Raad
firstname: Azalea
lastname: Raad
image: /images/azalea.jpg
......
---
title: Julian Sutherland
firstname: Julian
lastname: Sutherland
image: /images/julian.jpg
......
---
title: Shale Xiong
firstname: Shale
lastname: Xiong
image: /images/shale.jpg
position: PhD Student
webpage:
webpage: http://www.doc.ic.ac.uk/~sx14/
email: shale.xiong14@imperial.ac.uk
---
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