diff options
author | xengineering <me@xengineering.eu> | 2023-05-01 18:12:39 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-05-01 18:15:21 +0200 |
commit | c646cc886691de6ca0e4cf584f4385e3dadf5f79 (patch) | |
tree | 93bc5a438db494359d305827bd28483b6ebf2b3d | |
parent | 358c5e76d67477b26d841985649b9279d7633fc3 (diff) | |
download | ceres-c646cc886691de6ca0e4cf584f4385e3dadf5f79.tar ceres-c646cc886691de6ca0e4cf584f4385e3dadf5f79.tar.zst ceres-c646cc886691de6ca0e4cf584f4385e3dadf5f79.zip |
Show link just if not empty
Otherwise this is confusing.
-rw-r--r-- | data/templates/recipe.html | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ <main> <p>This recipe is written for {{.Recipe.Portions}} portions.</p> - <p><a href="{{.Recipe.Url}}">Link</a></p> + {{if ne .Recipe.Url ""}} + <p>Use this <a href="{{.Recipe.Url}}">link</a> to go to the original recipe.</p> + {{end}} {{range .Recipe.Steps}} <section> |