2021-06-24 23:44:12 +02:00
|
|
|
{%- macro render_rezept_post(post, from_index=false, section_class='-odd') -%}
|
|
|
|
{{- '\n ' -}} <section class="content {{ section_class }}">
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- if post.orf | default(false) -%}
|
|
|
|
{#-
|
|
|
|
Render recepie based on open recipe format
|
|
|
|
defined in zutaten.yml
|
|
|
|
-#}
|
2021-06-24 23:44:12 +02:00
|
|
|
{%- for child in post.children -%}
|
|
|
|
{%- if child._template == 'zutaten.yaml' -%}
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- if from_index -%}
|
2021-08-11 21:42:40 +02:00
|
|
|
{%- include "zutaten/rezept_from_index.html" -%}
|
2021-06-24 23:44:12 +02:00
|
|
|
{%- else -%}
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- include "zutaten/rezept.html" -%}
|
2021-06-24 23:44:12 +02:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
2021-08-08 23:35:54 +02:00
|
|
|
{%- include "macros/rezept_body.html" -%}
|
2021-08-11 01:21:25 +02:00
|
|
|
{%- if not from_index -%}
|
|
|
|
{%- include "zutaten/hygiene.html" -%}
|
2022-05-18 00:26:52 +02:00
|
|
|
{%- include "zutaten/orf.html" -%}
|
|
|
|
{%- include "zutaten/github.html" -%}
|
2021-08-11 01:21:25 +02:00
|
|
|
{%- endif %}
|
2021-08-08 23:35:54 +02:00
|
|
|
{%- else -%}
|
|
|
|
{%- include "macros/rezept_body.html" -%}
|
2021-06-24 23:44:12 +02:00
|
|
|
{%- endif %}
|
|
|
|
{{- '\n ' -}} </section>
|
|
|
|
{%- endmacro -%}
|