webseite/templates/zutaten/yields.yaml
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

11 lines
332 B
YAML

{#-
Template to collect yields for the recipe,yml
-#}
{%- if this.servings is defined and this.servings != "" -%}
{%- for prt in this.servings.blocks -%}
{%- if loop.index == 1 -%}
{{ '\nyields:' }}
{%- endif -%}
{{ '\n - servings:' }} {{ prt.serving_number | default('1') }}
{%- endfor -%}
{%- endif -%}