{% load static %} {% load wagtailimages_tags %} {% block content %}

{{ value.titulo_secao|safe }}

{{ value.descricao_secao }}

{% for categoria in categorias %} {% endfor %}
{% for evento in eventos_ordenados %} {% comment %} Determinando o slug da categoria para o filtro {% endcomment %} {% for cat in categorias %} {% if cat.nome == evento.categoria %} {% with cat_slug=cat.slug %}
{% image evento.imagem fill-400x200 as img %} {{ evento.titulo }}
{{ evento.categoria }}
{{ evento.data|date:"d" }} {{ evento.data|date:"M" }}

{{ evento.titulo }}

{{ evento.hora_inicio|time:"H:i" }} - {{ evento.hora_fim|time:"H:i" }}
{{ evento.local }}

{{ evento.descricao }}

{% endwith %} {% endif %} {% endfor %} {% endfor %}
{% endblock %}