Autoři se vypisují z pole

master
Emil Miler 4 years ago
parent 5b69ff1ad1
commit 0f0eed3ff6

@ -37,6 +37,17 @@
<h1>{{ section.title }}</h1>
{% if section.extra.group %}<div class="metadata">Cílová skupina &ndash; {{ section.extra.group }}</div>{% endif %}
{% if section.extra.time %}<div class="metadata">Časová dotace &ndash; {{ section.extra.time }}</div>{% endif %}
{% if section.extra.author %}<div class="metadata">Autor &ndash; {{ section.extra.author }}</div>{% endif %}
{% if section.extra.authors %}
{% if section.extra.authors | length > 1 %}
<div class="metadata">Autoři &ndash;
{% for author in section.extra.authors %}
{{ author }}
{% if not author == section.extra.authors | last %}, {% endif %}
{% endfor %}
</div>
{% else %}
<div class="metadata">Autor &ndash; {{ section.extra.authors[0] }}</div>
{% endif %}
{% endif %}
{{ section.content | safe }}
{% endblock content %}