From 87f56cb3bdfb68e85c4477cc12579ca77c831cb8 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Thu, 5 Jan 2023 20:24:36 +0100 Subject: [PATCH] add trim --- templates/page/post/_post_card.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/page/post/_post_card.html.twig b/templates/page/post/_post_card.html.twig index 0862143..11b1edc 100644 --- a/templates/page/post/_post_card.html.twig +++ b/templates/page/post/_post_card.html.twig @@ -38,5 +38,5 @@ {% set content = content|striptags[:summarySize] %} -

{{ content }}{% if content|length >= summarySize %}…{% endif %}

+

{{- content -}}{% if content|length >= summarySize %}…{% endif %}