From 21a14ecefe3f3f931240b5be6516924b75baf3bc Mon Sep 17 00:00:00 2001 From: Yoyo <49010271+ThisIsYoyo@users.noreply.github.com> Date: Wed, 29 Mar 2023 14:39:55 +0800 Subject: [PATCH] fix(template/index): post not show [why] - slice only take first 200 word as preview -> that will case some html content display wrong --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 760ca1a..55384fb 100755 --- a/templates/index.html +++ b/templates/index.html @@ -30,7 +30,7 @@
{{ post.author }} | {{ post.created_on}}
-{{post.content|safe|slice:":200" }}
+{{post.content|safe|truncatechars_html:200 }}
Read More →