{% extends "coderedcms/blocks/base_block.html" %} {% load wagtailcore_tags wagtailimages_tags %} {% block block_render %} {% load static %}

Notícias

Fique sabendo de tudo o que acontece na Enap

{% for page in pages %} {% if forloop.first %} {% else %} {% if forloop.counter == 2 %}
{% endif %}
{% if page.specific.imagem_externa %} {% image page.specific.imagem_externa fill-150x100 format-webp preserve-svg as sec_img %} {{ sec_img.title }} {% elif page.specific.imagem_interna %} {% image page.specific.imagem_interna fill-150x100 format-webp preserve-svg as sec_img %} {{ sec_img.title }} {% elif page.cover_image %} {% image page.cover_image fill-150x100 format-webp preserve-svg as sec_img %} {{ sec_img.title }} {% else %}
{% endif %}

{{ page.title }}

{% if page.specific.descricao_html %}

{{ page.specific.descricao_html|striptags|truncatewords:15 }}

{% else %}

{{ page.body_preview|truncatewords:15 }}

{% endif %}
{% endif %} {% empty %}

Nenhuma notícia disponível no momento.

{% endfor %} {% if pages|length > 1 %}
{% endif %}
Ver todas as notícias
{% endblock %}