diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index 462c4dc..78ecf1f 100644 --- a/templates/partials/blog_item.html.twig +++ b/templates/partials/blog_item.html.twig @@ -44,12 +44,14 @@ {{ page.content|truncate(200, true)|raw }} {% elseif truncate and page.summary != page.content %}

- {{ page.summary|striptags }} - more... + {{ page.content|replace({'

':'
'})|striptags('
')|truncate(200, true) }}

+ {% elseif truncate and page.summary != page.content %} + {{ page.summary|striptags('

') }} + more... {% elseif truncate %}

- {{ page.content|truncate(550)|striptags }} + {{ page.content|replace({'

':'
'})|striptags('
')|truncate(550) }} more...

{% else %}