From 0b098e539ff08526bcc0eec4fa6cf1a84d689484 Mon Sep 17 00:00:00 2001 From: Bat Date: Thu, 24 May 2018 10:55:41 +0100 Subject: [PATCH] Remove HTML tags from preview Fixes #24 --- templates/macros.tera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros.tera b/templates/macros.tera index 0486048..c090fe4 100644 --- a/templates/macros.tera +++ b/templates/macros.tera @@ -1,7 +1,7 @@ {% macro post_card(article) %}

{{ article.post.title }}

-

{{ article.post.content | escape | truncate(length=200) }}…

+

{{ article.post.content | striptags | truncate(length=200) }}…

By {{ article.author.display_name }} ⋅ {{ article.date | date(format="%B %e") }}

{% endmacro post_card %}