2021-07-31 18:48:28 +02:00
|
|
|
{#-
|
|
|
|
HTML Rendering des Rezept aus dem zutaten.yaml template
|
|
|
|
für die Detailseite des Rezepts.
|
|
|
|
-#}
|
|
|
|
|
|
|
|
{%- for child in post.children -%}
|
|
|
|
{%- if child._template == 'zutaten.yaml' -%}
|
2021-07-31 21:13:24 +02:00
|
|
|
{#-
|
|
|
|
|
|
|
|
Zunächst werden die Zutaten des Rezept definiert...
|
|
|
|
|
|
|
|
-#}
|
2021-07-31 18:48:28 +02:00
|
|
|
{{- '\n ' -}} <div class="content__box">
|
|
|
|
{{- '\n ' -}} <div class="content__inner_box">
|
|
|
|
{{- '\n ' -}}
|
2021-09-05 01:47:13 +02:00
|
|
|
<h1 id="{{- this.parent._gid[:8] -}}-{{- this.parent._gid[-6:-2] -}}-{{- this._gid[-8:-4] }}-{{- this._gid[-4:] -}}-{{- this._gid[:12] -}}">
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- if child.recipe_name and child.recipe_name != "" -%}
|
|
|
|
{{ child.recipe_name }}</h1>
|
|
|
|
{%- else -%}
|
|
|
|
{{ child.title }}</h1>
|
|
|
|
{%- endif -%}
|
|
|
|
{%- if child.servings is defined and child.servings != "" -%}
|
|
|
|
{%- if child.servings.blocks != [] -%}
|
2021-07-31 21:13:24 +02:00
|
|
|
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- include "zutaten/zutaten.html" -%}
|
2021-07-31 21:13:24 +02:00
|
|
|
|
2021-08-08 19:02:09 +02:00
|
|
|
{%- else -%}
|
|
|
|
<p>ungültige Rezeptangaben</p>
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{{- '\n ' -}} </div>
|
|
|
|
{{- '\n ' -}} </div>
|
2021-08-11 21:42:40 +02:00
|
|
|
{#-
|
2021-07-31 18:48:28 +02:00
|
|
|
|
2021-07-31 21:13:24 +02:00
|
|
|
Nachdem die Zutaten des Rezept nun angegeben sind,
|
|
|
|
folgt die Zubereitung der waffelfähigen Teigprodukte...
|
2021-07-31 18:48:28 +02:00
|
|
|
|
2021-07-31 21:13:24 +02:00
|
|
|
-#}
|
|
|
|
{%- if child.steps is defined and child.steps.blocks is defined and child.steps != "" -%}
|
|
|
|
{%- if child.steps.blocks is defined and child.steps.blocks != "" and child.steps.blocks != [] -%}
|
|
|
|
{%- include "zutaten/zubereitung.html" -%}
|
2021-08-11 21:42:40 +02:00
|
|
|
{%- endif -%}
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- endif -%}
|
2021-07-31 21:13:24 +02:00
|
|
|
{%- include "zutaten/hinweise.html" -%}
|
2021-08-11 01:21:25 +02:00
|
|
|
{#-
|
|
|
|
|
|
|
|
Render die Notizen und Angaben zur Verarbeitung der einzelnen Zutaten
|
|
|
|
|
|
|
|
-#}
|
|
|
|
{%- if child.ingredients is defined and child.ingredients != "" %}
|
|
|
|
{%- if child.ingredients.blocks != [] -%}
|
|
|
|
{%- include "zutaten/zutat_notes.html" -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
2021-07-31 21:13:24 +02:00
|
|
|
|
2021-07-31 18:48:28 +02:00
|
|
|
{#- source: "https://open-recipe-format.readthedocs.io/en/latest/topics/tutorials/walkthrough.html" -#}
|
|
|
|
|
2021-07-31 21:13:24 +02:00
|
|
|
{%- endif -%}
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- endfor -%}
|