forked from mitou/jr.mitou.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.json
18 lines (15 loc) · 811 Bytes
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout: null
---
{% assign projects = site.data.projects %}
[ {% for pj in projects %}
{
"title" : "{{ pj.title | escape }}",
"description" : "{{ pj.description | escape }}",
"thumbnail" : "{{ site.url }}/assets/img/thumbnails/{{ pj.year }}/{{ pj.thumbnail }}",
"permalink" : "{{ site.url }}/projects/{{ pj.year }}/{{ pj.id }}",
"year" : "{{ pj.year }}",
"creators" : "{% for creator_id in pj.creator_ids %}{% assign creator = site.data.creators | find_exp: 'item', 'item.id == creator_id' %}{{ creator.name }}{% unless forloop.last %} / {% endunless %}{% endfor %}",
"mentor" : "{% assign mentor = site.data.mentors | find_exp: 'item', 'item.id == pj.mentor_id' %}{{ mentor.name.last }}"
}{% unless forloop.last %},{% endunless %}{% endfor %}
]