From c646cc886691de6ca0e4cf584f4385e3dadf5f79 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 1 May 2023 18:12:39 +0200 Subject: Show link just if not empty Otherwise this is confusing. --- data/templates/recipe.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/templates/recipe.html b/data/templates/recipe.html index a91f025..2b387c0 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -17,7 +17,9 @@

This recipe is written for {{.Recipe.Portions}} portions.

-

Link

+ {{if ne .Recipe.Url ""}} +

Use this link to go to the original recipe.

+ {{end}} {{range .Recipe.Steps}}
-- cgit v1.2.3-70-g09d2