Compare commits

...

2 Commits

Author SHA1 Message Date
d741a36aa9 Zamezení trackování u externích odkazů
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-08 10:19:20 +01:00
7c070de4a5 Externí odkazy na zdroje receptu 2023-11-08 10:18:24 +01:00
4 changed files with 16 additions and 3 deletions

View File

@ -11,6 +11,9 @@ taxonomies = [
[markdown]
highlight_code = false
smart_punctuation = true
external_links_target_blank = true
external_links_no_follow = true
external_links_no_referrer = true
[extra]
git = "https://git.0x45.cz/em/receptty.org"

View File

@ -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 ||

View File

@ -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 ||

View File

@ -80,7 +80,15 @@
{% macro recipe_meta() %}
{% if page.extra.portions %}<span class="item" title="Porce"><span class="icon icon-spoon-knife"></span>{{ page.extra.portions }}</span>{% endif %}
{% if page.extra.time %}<span class="item" title="Doba přípravy"><span class="icon icon-clock"></span>{{ page.extra.time }} min</span>{% endif %}
{% if page.extra.source %}<span class="item" title="Zdroj"><span class="icon icon-book"></span>{{ page.extra.source }}</span>{% endif %}
{% if page.extra.source %}
<span class="item" title="Zdroj"><span class="icon icon-book"></span>
{% if page.extra.source_url %}
<a href="{{ page.extra.source_url }}" target="_blank" rel="noreferrer" rel="nofollow" rel="noopener">{{ page.extra.source }}</a>
{% else %}
{{ page.extra.source }}
{% endif %}
</span>
{% endif %}
<a href="{{ config.extra.git }}/_edit/master/content/{{ page.relative_path }}" class="edit" title="Upravit"><span class="icon-pencil"></span></a>
{% endmacro recipe_meta %}