You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
329 B

3 years ago
3 years ago
  1. ---
  2. layout: null
  3. ---
  4. {% assign counter = 1 %}
  5. {% assign total = site.recipes | size %}
  6. [{% for post in site.recipes %}
  7. {
  8. "title": "{{ post.title }}",
  9. "image": "{{ site.baseurl }}/images/{{ post.image }}"
  10. }{% if counter == total %}{% else %},{% endif %}
  11. {% assign counter = counter |plus: 1 %}{% endfor %}]