From b1b9937668a23a287e01985b4862f495f33b83ee Mon Sep 17 00:00:00 2001 From: mathiascode Date: Tue, 21 Apr 2020 05:22:28 +0300 Subject: [PATCH] Truncate based on character count --- _layouts/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/home.html b/_layouts/home.html index 51a7ffc..310831a 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -24,7 +24,7 @@ layout: default News {% for post in site.posts limit:1 %} - {{ post.content | strip_html | truncatewords: 8 }} + {{ post.content | strip_html | truncate: 45 }} {% endfor %}