From f5b5bb233ff1488de34f7fbafa715e92e2e7ef01 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 26 Jul 2023 00:23:00 +0200 Subject: [PATCH] Fix amount on alternate ingedient https://github.com/c3woc/c3woc-website/issues/55 --- content/rezept/vegan/rezept.yaml/contents.lr | 2 +- templates/zutaten/zutat_einzeln.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/rezept/vegan/rezept.yaml/contents.lr b/content/rezept/vegan/rezept.yaml/contents.lr index 84b53bc..02a4f98 100644 --- a/content/rezept/vegan/rezept.yaml/contents.lr +++ b/content/rezept/vegan/rezept.yaml/contents.lr @@ -91,7 +91,7 @@ amount: 200 ------ unit: g ###### flow_amounts ###### -amount: 1 +amount: 2 ------ unit: l ----- diff --git a/templates/zutaten/zutat_einzeln.html b/templates/zutaten/zutat_einzeln.html index c716ba8..6977f74 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 {{ amt2.amount }} {{ sst.ingredient }}) + >(alternativ {{ amt2.amount }} {{ amt2.unit | default('') }} {{ sst.ingredient }}) {%- endif -%} {%- endif -%} {%- endfor -%}