{% extends 'base.html.twig' %} {% block title %}{{ item.title }} — {{ site.schoolName }}{% endblock %} {% block meta_description %}{{ item.excerpt ?: item.title }}{% endblock %} {% block og_type %}article{% endblock %} {% block og_image %}{% if item.image %}{{ absolute_url(media_url('uploads/images/' ~ item.image)) }}{% elseif driveCover %}{{ driveCover }}{% else %}{{ parent() }}{% endif %}{% endblock %} {% block json_ld %} {% set eventSchema = { '@context': 'https://schema.org', '@type': 'Event', 'name': item.title, 'description': item.excerpt ?: item.title, 'startDate': item.occurredAt|date('c'), 'eventAttendanceMode': 'https://schema.org/OfflineEventAttendanceMode', 'eventStatus': 'https://schema.org/EventScheduled', 'location': { '@type': 'Place', 'name': site.schoolName, 'address': { '@type': 'PostalAddress', 'streetAddress': site.address, 'addressLocality': 'Votorantim', 'addressRegion': 'SP', 'postalCode': site.cep, 'addressCountry': 'BR' } }, 'organizer': { '@type': 'School', 'name': site.schoolName, 'url': app.request.schemeAndHttpHost } } %} {% if item.image %} {% set eventSchema = eventSchema|merge({ image: absolute_url(media_url('uploads/images/' ~ item.image)) }) %} {% endif %} {% endblock %} {% block body %} {% set cover = item.image ? media_url('uploads/images/' ~ item.image) : driveCover %} {% set body = item.content|striptags|trim %} {% set excerpt = item.excerpt|trim %} {% set showBody = body and excerpt and body != excerpt and body|length >= 80 %} {% set download %} {% if item.folderUrl %} Baixar fotos {% endif %} {% endset %} {% if cover %}
{{ item.title }}

{{ item.title }}

{% if excerpt %}

{{ item.excerpt }}

{% endif %} {{ download }}
{% else %}

{{ item.title }}

{% if excerpt %}

{{ item.excerpt }}

{% endif %} {{ download }}
{% endif %}
{% if showBody %}
{{ item.content|raw }}
{% endif %} {% if images %} {% elseif item.embedUrl %} {% endif %} {% include '_share.html.twig' with { title: item.title } %}
{% endblock %}