fix linebreaks et html

This commit is contained in:
Jean-Marie Favreau 2025-02-13 18:29:19 +01:00
parent 6ff2ff0b58
commit c2b6512895
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
{% block title %}{% block og_title %}{{ event.title }}{% endblock %}{% endblock %}
{% block og_image %}{% if event.has_image_url %}{{ event|get_image_uri:request }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block og_description %}{% if event.description %}{{ event.description |truncatewords:20|linebreaks }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block og_description %}{% if event.description %}{{ event.description |truncatewords:20 }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block entete_header %}
{% css_categories %}

View File

@ -97,7 +97,7 @@
<div class="description">
<div class="texte">
<p>{{ event.description |linebreaks2 | truncatewords:60 }}</p>
{{ event.description |linebreaks2 | truncatewords:60 }}
</div>
<div class="right bottom">
<a role="button" href="{{ event.get_absolute_url }}">Voir l'événement {% picto_from_name "chevron-right" %}

View File

@ -110,7 +110,7 @@
</article>
{% endif %}
<p>{{ event.description |linebreaks | robust_urlize }}</p>
{{ event.description |linebreaks | robust_urlize }}
</div>
<footer>