forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommunaute.html
89 lines (76 loc) · 2.93 KB
/
communaute.html
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
title: Communauté
menu_index: 2
additional_css: communaute
additional_js:
- https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.bundle.min.js
- communaute
hire_card:
id: recrutement
fullname: Vous ?
role: Développeu·r·se, chef·fe de produit numérique, coach lean, expert·e marketing digital…
link: /contact
avatar: /img/logo-generique-startup-carre.jpg
content: <b>Vous avez envie de nous rejoindre ? Contactez-nous !</b>
# Not used in page but required to validate the author object
employer: none
start: site.time
---
{% capture build_date %}{{ site.time | date:"%Y-%m-%d" }}{% endcapture %}
{% assign members = site.author | sort: 'start' | reverse %}
{% capture current_members_cards %} {% comment %} Capture in order to get the count right before outputting the cards {% endcomment %}
{% for person in members %}
{% capture end_date_as_string %}{{ person.end }}{% endcapture %}
{% if end_date_as_string == '' or end_date_as_string > build_date %}
{% include author.html description=person %}
<!--{% increment members_count %}-->
{% endif %}
{% endfor %}
{% endcapture %}
<section id="effectifs" class="ui container">
<h2 class="ui divider horizontal">Évolution des effectifs</h2>
<div id="chart-wrapper">
<canvas>
Nous avons actuellement {% increment members_count %} membres.
</canvas>
</div>
<p>À l'exception de quelques membres permanents qui assurent la passation de la connaissance, le lien avec l'administration hôte et la continuité de l'animation de la communauté, nos membres sont recrutés pour faire réussir <em>une</em> Startup d'État. Leur engagement est limité dans le temps. Cela évite à l'administration qui a lancé une Startup de la considérer comme un investissement impossible à abandonner, qui signerait la fin de son droit à l'échec et donc de sa capacité à innover.</p>
</section>
<section class="ui four stackable doubling cards container">
<h2 class="ui divider horizontal">La communauté des Startups d'État</h2>
{{ current_members_cards }}
{% include author.html description=page.hire_card %}
<h2 id="alumni" class="ui divider horizontal">Les ancien·ne·s</h2>
{% for person in members %}
{% capture end_date_as_string %}{{ person.end }}{% endcapture %}
{% if end_date_as_string != '' and end_date_as_string <= build_date %}
{% include author.html description=person %}
{% endif %}
{% endfor %}
</section>
<script type="text/javascript">
(function() {
window.buildDate = '{{ build_date }}';
window.data = {
dinsic: [],
admin: [],
independent: [],
service: []
};
{% for person in site.author %}
var employerType = '{{ person.employer }}'.split('/')[0];
{% if person.start %}
window.data[employerType].push({
date: '{{ person.start }}',
increment: 1
});
{% endif %}
{% if person.end %}
window.data[employerType].push({
date: '{{ person.end }}',
increment: -1
});
{% endif %}
{% endfor %}
})();
</script>