Skip to content

Commit 89e647b

Browse files
Delete layout pages for single features to reduce complexity, move layout to specific pages
1 parent 0712cc9 commit 89e647b

13 files changed

+93
-142
lines changed

_includes/list-events.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
{% endif %}
2828
</li>
2929
{% endfor %}
30-
</li>
30+
</ul>
3131
</div>
3232
{% endif %}

_layouts/collaborations-list.html

-22
This file was deleted.

_layouts/dissemination-list.html

-19
This file was deleted.

_layouts/events-list.html

-31
This file was deleted.

_layouts/projects-list.html

-24
This file was deleted.

_layouts/publications-list.html

-18
This file was deleted.

_layouts/tools-list.html

-18
This file was deleted.

collaborations.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
---
22
title: Collaborations
3-
layout: collaborations-list
3+
layout: page
44
permalink: /collaborations/
55
---
66

7+
{% assign currentCollaborations = site.data.collaborations | where_exp: "collaboration", "collaboration.endYear == nil" | sort: "name" %}
8+
{% assign formerCollaborations = site.data.collaborations | where_exp: "collaboration", "collaboration.endYear != nil" | sort: "name" %}
9+
10+
{% if currentCollaborations.size > 0 %}
11+
# Active Collaborations
12+
<div>
13+
{% include list-collaborations.html source=currentCollaborations style="card" %}
14+
</div>
15+
{% endif %}
16+
17+
{% if formerCollaborations.size > 0 %}
18+
# Past Collaborations
19+
<div>
20+
{% include list-collaborations.html source=formerCollaborations style="card" %}
21+
</div>
22+
{% endif %}

dissemination.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
---
22
title: Dissemination
3-
layout: dissemination-list
3+
layout: page
44
permalink: /dissemination/
55

66
---
77

8-
{% include toc.md %}
8+
{% include toc.md %}
9+
10+
{% assign disseminationByCategory = site.data.dissemination | group_by: "category" | sort: "name" %}
11+
12+
{% for category in disseminationByCategory %}
13+
{% assign categoryID = category.name | replace: " ", "-" | downcase %}
14+
<h1 id="{{ categoryID }}">{{ category.name }}</h1>
15+
16+
<div>
17+
{% include list-dissemination.html source=category.items style="table" %}
18+
</div>
19+
{% endfor %}

events.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
---
22
title: Events
3-
layout: events-list
3+
layout: page
44
permalink: /events/
55
---
66

7+
{% assign todayDate = 'now' | date: '%Y-%m-%d' %}
8+
{% assign currentEvents = site.data.events | where_exp: "event", "event.startDate <= todayDate" | where_exp: "event", "event.endDate >= todayDate" | sort: "startDate" | reverse %}
9+
{% assign incomingEvents = site.data.events | where_exp: "event", "event.startDate > todayDate" | sort: "startDate" | reverse %}
10+
{% assign pastEvents = site.data.events | where_exp: "event", "event.endDate < todayDate" | sort: "startDate" | reverse %}
11+
12+
{% if currentEvents.size > 0 %}
13+
<h1>Ongoing Events</h1>
14+
<div>
15+
{% include list-events.html source=currentEvents %}
16+
</div>
17+
{% endif %}
18+
19+
{% if incomingEvents.size > 0 %}
20+
<h1>Incoming Events</h1>
21+
<div>
22+
{% include list-events.html source=incomingEvents %}
23+
</div>
24+
{% endif %}
25+
26+
{% if pastEvents.size > 0 %}
27+
<h1>Past Events</h1>
28+
<div>
29+
{% include list-events.html source=pastEvents %}
30+
</div>
31+
{% endif %}

projects.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
---
22
title: Projects
3-
layout: projects-list
3+
layout: page
44
permalink: /projects/
55
---
66

7-
Here you can find a list of the projects the unit is/has been involved in.
7+
Here you can find a list of the projects the unit is/has been involved in.
8+
9+
{% assign todayDate = 'now' | date: '%Y-%m-%d' %}
10+
{% assign currentProjectsWithoutEnd = site.data.projects | where_exp: "project", "project.endDate == nil" %}
11+
{% assign currentProjectsWithEnd = site.data.projects | where_exp: "project", "project.endDate >= todayDate" %}
12+
{% assign currentProjects = currentProjectsWithoutEnd | concat: currentProjectsWithEnd %}
13+
{% assign formerProjects = site.data.projects | where_exp: "project", "project.endDate < todayDate" %}
14+
15+
<h1>Current Projects</h1>
16+
<div>
17+
{% include list-projects.html source=currentProjects style="card" %}
18+
</div>
19+
20+
<h1>Former Projects</h1>
21+
<div>
22+
{% include list-projects.html source=formerProjects style="card" %}
23+
</div>

publications.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
---
22
title: Publications
3-
layout: publications-list
3+
layout: page
44
permalink: /publications/
55

66
---
77

8+
{% assign publicationsByYear = site.data.publications | where_exp: "publication", "publication.id_iris != nil" | group_by: "year" | sort: "name" | reverse %}
9+
10+
{% for year in publicationsByYear %}
11+
<h1>{{ year.name }} <small>({{ year.items.size }})</small></h1>
12+
<div>
13+
{% include list-publications.html source=year.items sort="title" %}
14+
</div>
15+
{% endfor %}

tools.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
---
22
title: Tools
3-
layout: tools-list
3+
layout: page
44
permalink: /tools/
55
---
66

7-
Here you can find a list of the tools developed within the unit.
7+
Here you can find a list of the tools developed within the unit.
8+
9+
{% assign tools = site.data.tools | sort_natural: "name" %}
10+
{% assign details = "description" | split: ", " %}
11+
12+
<div>
13+
{% include list-tools.html source=tools details=details %}
14+
</div>

0 commit comments

Comments
 (0)