From 589bc1f1aa53999a731db2f6fbb80bc724c23feb Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 12 Feb 2023 20:52:52 +0100 Subject: [PATCH] fixed open graph tags when attributes are missing --- cookbook/templates/recipe_view.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index 8e2a4bb4..3cb4e79f 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -11,10 +11,14 @@ - - - - + {% if recipe.image %} + + + + {% endif %} + {% if recipe.description %} + + {% endif %} {% endblock %}