forked from clarklab/chowdown
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.json
18 lines (16 loc) · 907 Bytes
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
---
[
{% for post in site.recipes %}
{
"title" : "{{ post.title | escape }}",
{% if post.ingredients %}"ingredients" : "{% for ingredient in post.ingredients %}{{ ingredient | escape }}, {% endfor %}",{% endif %}
{% if post.tags %}"tags" : "{% for tag in post.tags %}{{ tag | escape }} {% endfor %}",{% endif %}
{% if post.cuisines %}"cuisines" : "{% for cuisines in post.cuisines %}{{ cuisine | escape }} {% endfor %}",{% endif %}
{% if post.diets %}"diets" : "{% for diet in post.diets %}{{ diet | escape }} {% endfor %}",{% endif %}
{% if post.courses %}"courses" : "{% for course in post.courses %}{{ course | escape }} {% endfor %}",{% endif %}
"image" : "{{ site.baseurl }}/images/{{ post.images[0].path }}",
"url" : "{{ site.baseurl }}{{ post.url }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]