From c01689f892977ddcab50271826ec1e27fe02d158 Mon Sep 17 00:00:00 2001 From: Emi Vasilek Date: Sun, 5 Nov 2023 12:44:13 +0100 Subject: [PATCH] don't show part title if there is only one part --- templates/recipe.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/recipe.html b/templates/recipe.html index 501eb74..0d6a17a 100644 --- a/templates/recipe.html +++ b/templates/recipe.html @@ -15,7 +15,9 @@ back

{{recipe.title}}

{% for part in recipe.parts %} +{% if recipe.parts|length != 1 %}

{{part.title}}

+{% endif %}

Ingredients

{% for ing in part.ingredients %}
  • {{ingredient(ing)}}