Commit 6612729d authored by Roland Denis's avatar Roland Denis
Browse files

Fixing job offer page generation and adding job offer count.

By adding a job placeholder with an expiration date in the past.

Fix #186
parent f45c2769
Title: Placeholder to force job offer category and tag pages generation
Date: 2019-06-20
Category: job
Tags: cdd, cdi, stage, postdoc, these
Template: job_offer
Expiration_Date: 2019-01-01
Placeholder to force job offer category and tag pages generation.
......@@ -14,11 +14,13 @@
<div class="container-fluid d-flex justify-content-center link pb-3">
<div class="row">
{% for tag, articles in tags | sort %}
{% if tag in JOB_OFFER_TAGS and articles | filter_by_date('expiration_date') | length %}
{% if tag in JOB_OFFER_TAGS %}
<div class="col-md-auto text-left header-toc">
<a href="{{SITEURL}}/tag/{{tag}}.html">
<img style="width:22px" src="{{ SITEURL }}/theme/img/ancre.png"/>
{{JOB_OFFER_TAGS[tag]}}
{% set job_offer_cnt = articles | filter_by_date('expiration_date') | length %}
{% if job_offer_cnt > 0 %}({{job_offer_cnt}}){% endif %}
</a>
</div>
{% endif %}
......
Supports Markdown
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