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 %}