From f03a9b3c4f734ac67f0356c89ac49ef121a55d1a Mon Sep 17 00:00:00 2001 From: welpo Date: Tue, 15 Aug 2023 20:27:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20standardise=20posts'=20?= =?UTF-8?q?summary=20&=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Cleans up newlines and html tags. * Removes ellipsis from summary. --- templates/macros/list_posts.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html index 31f91d0..1b12c68 100644 --- a/templates/macros/list_posts.html +++ b/templates/macros/list_posts.html @@ -32,9 +32,9 @@
{% if post.description %} -

{{ post.description }}

+

{{ post.description | striptags | safe }}

{% elif post.summary %} -

{{ post.summary | safe }}…

+

{{ post.summary | striptags | safe }}

{% endif %}