Commit b12f8347 authored by Tom Wiesing's avatar Tom Wiesing

Handle orphaned systems in page and menu

parent 22918a7e
Pipeline #337 passed with stage
in 2 minutes and 40 seconds
......@@ -94,7 +94,7 @@ It consists of a set of items, that are defined by the following keys:
**Submenus**. The menu allows (up to) one level of submenus. There are three such cases:
1. An item specifies the `folder` key. In this case all pages in the given folder are automatically added. The frontmatter is used for the specification.
1. An item specifies the `folder` key. In this case all pages in the given folder are automatically added. The frontmatter is used for the specification. Items with the `hidden` key in frontmatter set to true are automatically excluded.
2. An item specifies the `items` key. Here the items are used accordingly.
3. An item specifies both the `folder` and `items` keys. The items for both cases are automatically merged.
......
......@@ -99,6 +99,8 @@ menu:
active: '/systems/'
url: '/systems/'
items:
- title: 'Orphaned Systems'
url: '/systems/orphans/'
- title: 'Historic Systems'
url: '/systems/historic/'
......
......@@ -5,6 +5,7 @@
<li class="collection-item">
<a href="{{item.url}}" class="title">{{item.title}}</a>
{% if item.funding %} ({{item.funding}}) {% endif %}
{% if item.orphan %}<b>(up for adoption)</b>{% endif %}
<div>
{% if item.start_date %}
......
......@@ -24,6 +24,17 @@ layout: default
</p>
<hr />
{% endif %}
{% if page.orphan %}
<p>
<a href="{{ site.baseurl }}/systems/orphans">
<div class="chip">
Up for adoption
</div>
</a>
</p>
<hr />
{% endif %}
{% for person in page.people %}
{% include people_chip.html %} <br />
......
......@@ -5,6 +5,7 @@ title: "KAT: KWARC Annotation Tool"
teaser: An Annotation Tool for STEM Documents
start_date: 2013-06
orphan: true
people:
- mkohlhase
......
---
layout: page
title: Orphaned Systems up for Adoption
permalink: /systems/orphans/
---
Many of the KWARC projects are the work of students and become orphaned when these move on
to greener pastures (e.g. when they graduate). We put these systems up for adoption bt new
students. If you are interested, please contact someone from the KWARC group, we would be
happy to help you understand the development opportunities and get involved.
{% assign systems = site.pages | where: "layout", "system" | sort: "pillar" | sort: "start_date" %}
<ul class="collection">
{% for item in systems %}
{% if item.orphan %}
{% include psitem.html %}
{% endif %}
{% endfor %}
</ul>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment