{% import 'includes/macros.html.twig' as macros %}
{% set content = pimcore_wysiwyg('content') %}
{# add autogenerated meta description #}
{% if document.getDescription() is empty %}
{% do pimcore_head_meta().setDescription(content.getData(), 160) %}
{% endif %}
<section class="area-wysiwyg">
<div class="row">
<div class="col-sm-8">
{% apply pimcore_glossary %}
{{ content|raw }}
{% endapply %}
</div>
<div class="col-sm-4">
{% for i in pimcore_iterate_block(pimcore_block('images')) %}
{{ macros.image_link(pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-responsive img-thumbnail mb-3' }}), editmode, 'galleryLightbox') }}
{% endfor %}
</div>
</div>
</section>