From 7c070de4a5a54ed55844387278ae875126f69e90 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 8 Nov 2023 10:18:24 +0100 Subject: [PATCH] =?UTF-8?q?Extern=C3=AD=20odkazy=20na=20zdroje=20receptu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/vajecnak-podle-zufanka/index.md | 3 ++- content/vajecny-liker/index.md | 3 ++- templates/macros.html | 10 +++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/content/vajecnak-podle-zufanka/index.md b/content/vajecnak-podle-zufanka/index.md index d75c5e2..c2653c2 100644 --- a/content/vajecnak-podle-zufanka/index.md +++ b/content/vajecnak-podle-zufanka/index.md @@ -11,7 +11,8 @@ tagy = ["alkohol"] [extra] portions = "1 lahev" time = "30" -source = "https://www.facebook.com/zufanek/posts/pfbid034o7uw1trRsf7GdvDWmG4EswkbG5Vcp5DrbZVvo52qnt6nBmVZky5fv4T7ESQiLPzl" +source = "Martin Žufánek" +source_url = "https://www.facebook.com/zufanek/posts/pfbid034o7uw1trRsf7GdvDWmG4EswkbG5Vcp5DrbZVvo52qnt6nBmVZky5fv4T7ESQiLPzl" +++ Ingredience || diff --git a/content/vajecny-liker/index.md b/content/vajecny-liker/index.md index 77efb5c..1a25a79 100644 --- a/content/vajecny-liker/index.md +++ b/content/vajecny-liker/index.md @@ -11,7 +11,8 @@ tagy = ["alkohol"] [extra] portions = "1 lahev" time = "30" -source = "https://recepty.cuketka.cz/vajecny-liker-konak-eggnog/" +source = "Cuketka.cz" +source_url = "https://recepty.cuketka.cz/vajecny-liker-konak-eggnog/" +++ Ingredience || diff --git a/templates/macros.html b/templates/macros.html index 707d7c9..a33f3dd 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -80,7 +80,15 @@ {% macro recipe_meta() %} {% if page.extra.portions %}{{ page.extra.portions }}{% endif %} {% if page.extra.time %}{{ page.extra.time }} min{% endif %} - {% if page.extra.source %}{{ page.extra.source }}{% endif %} + {% if page.extra.source %} + + {% if page.extra.source_url %} + {{ page.extra.source }} + {% else %} + {{ page.extra.source }} + {% endif %} + + {% endif %} {% endmacro recipe_meta %}