You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
seacms-theme/includes/blocks/_markdown_by_paragraph.twig

19 lines
647 B

{# SPDX-License-Identifier: EUPL-1.2 #}
{% for paragraph in content|split("\n")|filter(e=>e is not empty) %} {# small mb-0 #}
{% if mode == "about" %}
<div class="col-lg-4{{ loop.first : " ms-auto" : "" }}{{ loop.last : " me-auto" : "" }}">
{% block paragapheblock %}
<p class="{{ (mode == "about") ? "lead" : (
(mode == "footer") ? "lead mb-0" : (
(mode == "copyright") ? "small mb-0" : ""
)
) }}">
{{ paragraph|markdown(singleLine=true) }}
</p>
{% endblock paragapheblock %}
</div>
{% else %}
{{ block('paragapheblock') }}
{% endif %}
{% endfor %}