1
0
Fork 0
mirror of https://github.com/TheThomaas/my-online-cookbook.git synced 2026-01-11 20:21:49 +00:00
cookbook/src/search.njk
2021-05-15 00:01:57 +02:00

13 lines
379 B
Plaintext

---
permalink: search.json
---
[
{% for recipe in collections.recipes %}
{
"title" : "{{ recipe.data.title }}",
"url" : "{{ recipe.url }}",
"ingredients" : [{% for ingredient in recipe.data.ingredients %}"{{ingredient}}"{% if not loop.last %},{% endif %}{% endfor %}]
}{% if not loop.last %},{% endif %}
{% endfor %}
]