forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
35 lines (29 loc) · 1.12 KB
/
search.json
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
---
---
[
{% for startup in site.startups %}
{% assign startup_id = startup.id | remove: "/startups/" %}
{% assign team = site.authors | where:"startups", startup_id %}
{% assign current_team = "" %}
{% for people in team %}
{% capture to_append %}{{people.fullname}}, {% endcapture %}
{% assign current_team = current_team | append: to_append %}
{% endfor %}
{% assign team = site.authors | where:"previously", startup_id %}
{% assign past_team = "" %}
{% for people in team %}
{% capture to_append %}{{people.fullname}}, {% endcapture %}
{% assign past_team = past_team | append: to_append %}
{% endfor %}
{
"title" : "{{ startup.title | escape }}",
"mission" : "{{ startup.mission | escape }}",
"owner" : "{{ startup.owner | escape }}",
"incubator" : "{{ startup.incubator | escape }}",
"url" : "{{ site.baseurl }}{{ startup.url }}",
"contact" : "{{ startup.contact }}",
"current_team" : "{{ current_team }}",
"past_team" : "{{ past_team }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]