From f224ac623b62c9c72efe779183fa8fa50f660c94 Mon Sep 17 00:00:00 2001 From: maeligg Date: Wed, 16 Jun 2021 12:01:55 +0200 Subject: [PATCH] Fix bug where ingredients would not render if servings was an empty string --- src/_includes/layouts/recipe.njk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_includes/layouts/recipe.njk b/src/_includes/layouts/recipe.njk index 9d9e603..c2a0ed1 100644 --- a/src/_includes/layouts/recipe.njk +++ b/src/_includes/layouts/recipe.njk @@ -11,13 +11,13 @@ {{ tag }} {% endfor %} -
- {% if time or servings %} +
+ {% if time or not servings == "" %}
{% if time %}

{% include "icons/time.svg" %}{{ time }}

{% endif %} - {% if servings %} + {% if not servings == "" %}