{% load wagtailcore_tags %}

{{ item.perex }}

{% for block in item.content %} {% if block.block_type == "text" %} {% comment %} No need to wrap this in a

, as the value already does this {% endcomment %} {{ block.value }} {% elif block.block_type == "quote" %}

„{{ block.value.quote }}“

— {{ block.value.autor_name }}

{% elif block.block_type == "download" %}

Soubor „{{ block.value.file }}“ ke stažení: {{ block.value.file.url }}

{% elif block.block_type == "image" %}

{{ block.value.text }}

{% endif %} {% endfor %}