project.html 2.18 KB
Newer Older
tron's avatar
tron committed
1 2 3 4 5 6 7
---
layout: text
---
<h1>{{ page.title }}</h1>

{{ content | markdownify }}

Marvin Thäns's avatar
Marvin Thäns committed
8
{% if page.tags %}
tron's avatar
tron committed
9
{% include news tags=page.tags maxItems=6 headline="<h2>News</h2>" noToggle=true %}
Marvin Thäns's avatar
Marvin Thäns committed
10

tron's avatar
tron committed
11 12 13 14
{% include topics tags=page.tags headline="<h2>Theses and projects</h2>" %}
{% include topics tags=page.tags status = "open"  headline="<h3>Open</h3>" %}
{% include topics tags=page.tags status = "assigned" headline="<h3>Assigned</h3>" %}
{% include topics tags=page.tags status = "closed" headline="<h3>Closed</h3>" %}
Marvin Thäns's avatar
Marvin Thäns committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


{% include jobs tags=page.tags maxItems=6 headline="<h2>Open positions</h2>"%}
{% endif %}

{% if page.funding%}
<h2> Funding and Collaboration </h2>
{% assign cf = 0 %}
<div class="column-layout">
    {% for funder in page.funding %}
        <div>
            {% include block image=funder.logo title=funder.name external_url=funder.url  teaser=funder.description%}
        </div>
        {% assign cf = cf | plus: 1 %}
    {% endfor %}
    {% include placeholderBlocks itemListLength=cf %} 
</div>
{% endif %}

tron's avatar
tron committed
34 35 36 37 38 39

{% if page.hideteam %}
{% else %}

{% assign counter = 0 %}

Marvin Thäns's avatar
Marvin Thäns committed
40
<h2>Team</h2>
tron's avatar
tron committed
41 42 43 44 45 46 47 48 49
<div class="column-layout">
    {% for member in page.team %}
    	{% assign name = member.title %}
    	{% assign url = member.url %}
    	{% assign image = "people/default-portrait.png" %}
    	{% if member.image %}
    		{% assign image = member.image %}
    	{% else %}
    		{% for staff in site.people %}
Marvin Thäns's avatar
Marvin Thäns committed
50 51 52
                {% capture fullname %}{{staff.firstNames}} {{staff.lastName}}{% endcapture %}
                {% if staff.firstNames == name or staff.lastName == name or fullname == name %}
                    {% capture fullname %}{{staff.firstNames}} {{staff.lastName}}{% endcapture %}
tron's avatar
tron committed
53 54 55 56 57 58 59 60 61 62
    				{% capture name %}{{staff.titlePrefix}} {{staff.firstNames}} {{staff.lastName}}{{staff.titleSuffix}}{% endcapture %}
    				{% assign image = staff.image %}
    				{% assign url = staff.url %}
    			{% endif %}	
    		{% endfor %}
    	{% endif %}
    	{% include block image=image imagedimension="portrait" imageclass="u-width-50" title=name teaser=member.function url=url %}	
    	{% assign counter = counter | plus: 1 %}
    {% endfor %}

Marvin Thäns's avatar
Marvin Thäns committed
63
    {% include placeholderBlocks itemListLength=counter %}  
tron's avatar
tron committed
64
</div>    
Marvin Thäns's avatar
Marvin Thäns committed
65
{% endif %}