forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jobs.xml
49 lines (41 loc) · 2.32 KB
/
jobs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ page.url | absolute_url | xml_escape }}</id>
<title type="html">{{ site.title | smartify | xml_escape }}</title>
<subtitle>Offres de recrutement ouvertes au sein de beta.gouv.fr</subtitle>
<icon>{{ "/assets/images/favicons/favicon-96x96.png" | absolute_url | xml_escape }}</icon>
<logo>{{ "/img/incubators/logo_beta.png" | absolute_url | xml_escape }}</logo>
{% assign jobs = site.jobs | where: "open", 'true' | sort: "date" | reverse %}
{% for job in jobs limit: 20 %}
{% assign startup_id = job.startup %}
{% assign startup = site.startups | where: "title", startup_id | first %}
{% unless startup %}
{% capture startup_id %}/startups/{{ job.startup }}{% endcapture %}
{% assign startup = site.startups | where: "id", startup_id | first %}
{% endunless %}
{% capture job_title %}
{{ job.roles | capitalize }} - Offre de {% if job.friend %}{{ job.friend | strip_html }}{% else %}{{ startup.title | default: "beta.gouv.fr" | strip_html}}{% endif %}
{% endcapture %}
{% capture job_content %}{% include job-content.html job=job %}{% endcapture %}
<entry>
<title type="html">{{ job_title }}</title>
<link href="{{ job.url | absolute_url }}" rel="alternate" type="text/html" title="{{ job_title }}" />
<published>{{ job.date | date_to_xmlschema }}</published>
<updated>{{ job.last_modified_at | default: job.date | date_to_xmlschema }}</updated>
<id>{{ job.id | absolute_url | xml_escape }}</id>
<author>
{% if job.friend %}{{ job.friend }}{% else %}{{ job.startup.title | default: "beta.gouv.fr"}}{% endif %}
</author>
<domaine>{{ job.domaine }}</domaine>
<content type="html" xml:base="{{ job.url | absolute_url | xml_escape }}">
{{ job_content | xml_escape }}
</content>
</entry>
{% endfor %}
</feed>