jobs 855 Bytes
Newer Older
1 2 3 4
<!-- Filter active jobs. Further filter tags when used.  -->
{% if include.tags %}
{% assign taged = include.tags | remove: " " | split: "," %}
    {% assign itemlist = '' | split: ',' %}
Marvin Thäns's avatar
Marvin Thäns committed
5 6
       {% for d in taged %}
      	{% assign tag = d | remove: '"'| remove: ',,'| remove: "["| remove: "]"%}
tron's avatar
tron committed
7
        {% assign temp = site.jobs | where: "active","true" | where: "tags", tag  %}
8 9 10 11 12 13 14 15
        {% assign itemlist = itemlist | concat: temp | sort: 'date' | reverse %}
    {% endfor %}
{% else %}
{% assign itemlist = site.jobs | where: "active",true | sort: 'date' | reverse %}
{% endif %}

<!-- Display data -->
{% if itemlist.size > 0 %}
Marvin Thäns's avatar
Marvin Thäns committed
16 17 18
{% if include.headline %}
    {{include.headline}}
{% else %}
19
## Open Positions
Marvin Thäns's avatar
Marvin Thäns committed
20 21 22
{% endif %}
{% include list-blocks items=itemlist maxItems=include.maxItems noToggle=include.noToggle hardMax=include.hardMax%}
{% endif %}