Tlačítko pro editaci receptu

This commit is contained in:
Emil Miler
2021-03-11 17:14:08 +01:00
parent 613b6b5dab
commit dbb6fb0b80
9 changed files with 52 additions and 33 deletions

View File

@ -16,9 +16,10 @@
{% if page.extra.image %}<img src="{{ page.extra.image }}" alt="Náhled">{% endif %}
<div class="meta">
{% if page.extra.portions %}<span class="tag">Porce: <strong>{{ page.extra.portions }}</strong></span>{% endif %}
{% if page.extra.time %}<span class="tag">Doba přípravy: <strong>{{ page.extra.time }} min</strong></span>{% endif %}
{% if page.extra.source %}<span class="tag">Zdroj: <strong>{{ page.extra.source }}</strong></span>{% endif %}
{% if page.extra.portions %}<span class="tag">Porce:&nbsp;<strong>{{ page.extra.portions }}</strong></span>{% endif %}
{% if page.extra.time %}<span class="tag">Doba přípravy:&nbsp;<strong>{{ page.extra.time }}&nbsp;min</strong></span>{% endif %}
{% if page.extra.source %}<span class="tag">Zdroj:&nbsp;<strong>{{ page.extra.source }}</strong></span>{% endif %}
<a href="{{ config.extra.git }}/_edit/master/content/{{ page.relative_path }}" class="edit" title="Upravit"><span class="icon-pencil"></span></a>
</div>
{{ page.content | safe }}
@ -27,8 +28,8 @@
{% if page.taxonomies.kategorie %}
{% set categories = page.taxonomies.kategorie %}
<div>
Kategorie &ndash;
<div class="taglist">
Kategorie&nbsp;&ndash;&nbsp;
{% for term in categories %}
<span class="tag"><a href="{{ get_taxonomy_url(kind="kategorie", name=term) | safe }}">{{ term | capitalize() }}</a></span>
{% endfor %}
@ -37,8 +38,8 @@
{% if page.taxonomies.tagy %}
{% set tags = page.taxonomies.tagy %}
<div>
Tagy &ndash;
<div class="taglist">
Tagy&nbsp;&ndash;&nbsp;
{% for term in tags %}
<span class="tag"><a href="{{ get_taxonomy_url(kind="tagy", name=term) | safe }}">{{ term | capitalize() }}</a></span>
{% endfor %}