From a5b2e6827258d395aaffbfd17af21dbb83834210 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 25 May 2023 15:02:18 +0200 Subject: [PATCH] Fix amount --- content/rezept/currywurst/rezept.yaml/contents.lr | 7 ++++++- templates/zutaten/zutat_einzeln.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/content/rezept/currywurst/rezept.yaml/contents.lr b/content/rezept/currywurst/rezept.yaml/contents.lr index 1932bdc..6c378bb 100644 --- a/content/rezept/currywurst/rezept.yaml/contents.lr +++ b/content/rezept/currywurst/rezept.yaml/contents.lr @@ -140,7 +140,12 @@ ingredient: Fruchtbuttermilch ---- usda_num: 011110906151 ---- -amounts: +amounts: + +##### flow_amounts ##### +amount: 1 +----- +unit: l ---- substitutions: ---- diff --git a/templates/zutaten/zutat_einzeln.html b/templates/zutaten/zutat_einzeln.html index b4b6758..c716ba8 100644 --- a/templates/zutaten/zutat_einzeln.html +++ b/templates/zutaten/zutat_einzeln.html @@ -53,7 +53,7 @@ {%- if sst.usda_num is defined and sst.usda_num != "" -%} {{- ' class=' -}}"usda_{{- sst.usda_num -}}" {%- endif -%} - >(alternativ {{ sst.ingredient }}) + >(alternativ {{ amt2.amount }} {{ sst.ingredient }}) {%- endif -%} {%- endif -%} {%- endfor -%}