Guest User

Untitled

a guest
Jun 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. ---
  2. layout: null
  3. ---
  4. {%- capture keuken -%}
  5. {%- for keuken in site.auteurs -%}
  6. {{ keuken.keuken }}
  7. {% endfor %}
  8. {%- endcapture -%}
  9. {%- assign keukens = keuken | split:' ' | uniq | sort -%}
  10. [ {%- for k in keukens -%}
  11. {
  12. "keuken" : "{{ k }}",
  13. "auteur" : [
  14. {%- for keuken in site.auteurs -%}
  15. {% if k == keuken.keuken %}
  16. {
  17. "name" : "{{ keuken.title }}",
  18. "year" : "{{ keuken.year }}",
  19. "until" : "{{ keuken.until }}",
  20. "bron" : "{{ keuken.bron }}",
  21. "bron_url" : "{{ keuken.bron_url }}",
  22. "weight" : "{{ keuken.weight }}",
  23. "selection": "{{ keuken.selection }}",
  24. "boeken" : [
  25. {%- for boek in site.kookboeken -%}
  26. {% if keuken.title == boek.auteur %}
  27. {
  28. "title" : "{{ boek.title }}",
  29. "uitgever" : "{{ boek.uitgever }}",
  30. "jaar" : "{{ boek.jaar }}",
  31. "nl-title" : "{{ boek.nl-title }}",
  32. "nl-uitgever": "{{ boek.nl-uitgever }}",
  33. "nl-jaar" : "{{ boek.nl-jaar }}",
  34. "bron" : "{{ boek.bron }}",
  35. "bron_url" : "{{ boek.bron_url }}",
  36. "pag" : "{{ boek.pag }}",
  37. "exerpt" : "{{ boek.exerpt }}",
  38. "selection" : "{{ boek.selection }}",
  39. "recepten" : [
  40. {%- for recept in site.recepten -%}
  41. {% if boek.title == recept.boek %}
  42. {
  43. "title": "{{ recept.title }}",
  44. "index": "{{ recept.index }}",
  45. "kategorie": "{{ recept.kategorie }}",
  46. "product": "{{ recept.product }}",
  47. "gerecht": "{{ recept.gerecht }}",
  48. "menu": "{{ recept.menu }}",
  49. "tags": "{{ recept.tags }}",
  50. "sub": "{{ recept.sub }}",
  51. "recipe": "{{ recept.recipe }}",
  52. "prep": "{{ recept.prep }}",
  53. "ingredients_inkoop":
  54. [
  55. {%- for ink in recept.ingredients_inkoop -%}
  56. "{{ ink }}"{% unless forloop.last %},{% endunless %}{% endfor %}
  57. ],
  58. "ingredients_voorraad":
  59. [
  60. {%- for voor in recept.ingredients_voorraad -%}
  61. "{{ voor }}"{% unless forloop.last %},{% endunless %}{% endfor %}
  62. ],
  63. "ingredients_basis":
  64. [
  65. {%- for bas in recept.ingredients_basis -%}
  66. "{{ bas }}"{% unless forloop.last %},{% endunless %}{% endfor %}
  67. ],
  68. "directions_markdown":
  69. [
  70. {%- for dir in recept.directions_markdown -%}
  71. "{{ dir }}"{% unless forloop.last %},{% endunless %}{% endfor %}
  72. ]
  73. }{% unless forloop.last %},
  74. {% endunless %}
  75. {% endif %}
  76. {%- endfor -%}
  77. ]
  78. }{% unless forloop.last %},
  79. {% endunless %}
  80. {% endif %}
  81. {%- endfor -%}
  82. ]
  83. }{% unless forloop.last %},{% endunless %}
  84. {% endif %}
  85. {%- endfor -%}
  86. ]
  87. }{% unless forloop.last %},
  88. {% endunless %}
  89. {%- endfor -%}
  90. ]
Add Comment
Please, Sign In to add comment