webseite/templates/macros/rezept.html
L3D fd742c7049 redesign website (!1)
Co-authored-by: L3D <l3d@see-base.de>
Reviewed-on: https://backwesen.de/c3woc/webseite/pulls/1
2022-05-18 00:35:37 +02:00

27 lines
932 B
HTML

{%- macro render_rezept_post(post, from_index=false, section_class='-odd') -%}
{{- '\n ' -}} <section class="content {{ section_class }}">
{%- if post.orf | default(false) -%}
{#-
Render recepie based on open recipe format
defined in zutaten.yml
-#}
{%- for child in post.children -%}
{%- if child._template == 'zutaten.yaml' -%}
{%- if from_index -%}
{%- include "zutaten/rezept_from_index.html" -%}
{%- else -%}
{%- include "zutaten/rezept.html" -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- include "macros/rezept_body.html" -%}
{%- if not from_index -%}
{%- include "zutaten/hygiene.html" -%}
{%- include "zutaten/orf.html" -%}
{%- include "zutaten/github.html" -%}
{%- endif %}
{%- else -%}
{%- include "macros/rezept_body.html" -%}
{%- endif %}
{{- '\n ' -}} </section>
{%- endmacro -%}