From 38460b7344a543f3408c987c59bcc78bca97b1a9 Mon Sep 17 00:00:00 2001 From: Andrew Cantino Date: Thu, 15 Feb 2018 16:50:18 -0800 Subject: [PATCH] Strip HTML first so that long HTML blocks (like script tags) get removed correctly --- _layouts/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/home.html b/_layouts/home.html index e7c08d6..c4609dc 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -11,7 +11,7 @@ layout: default

- {{ post.content | truncatewords: 30 | strip_html }} + {{ post.content | strip_html | truncatewords: 30 }}