Mercurial > libervia-templates
diff sat_templates/templates/bulma/blog/item.html @ 344:e982a05d43b1
blog/item, css: fix `white-space` for text content
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Oct 2021 17:19:39 +0200 |
parents | ce2fd7a3911d |
children | ddcdc0475940 |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/blog/item.html Fri Oct 15 18:02:51 2021 +0200 +++ b/sat_templates/templates/bulma/blog/item.html Thu Oct 21 17:19:39 2021 +0200 @@ -58,9 +58,13 @@ </small> {% endif %} </p> - <p> - {{- item.content_xhtml|safe if item.content_xhtml is defined else item.content|urlize -}} - </p> + {% if item.content_xhtml is defined %} + {{item.content_xhtml|safe}} + {% else %} + <p class="is-text-content"> + {{- item.content|urlize -}} + </p> + {% endif %} {% for comments_data in item.comments %} {% for item in comments_data['items'] %} {% include 'blog/item.html' %}