From ee31030587b758e72a7a7e1fe36e534fff5f913e Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda@uni.lu> Date: Fri, 3 Jul 2020 17:15:10 +0200 Subject: [PATCH] feat: remove html from news on the index page --- _layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/index.html b/_layouts/index.html index 440048a..b19a66c 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -77,7 +77,7 @@ layout: default <span class="post-date">Published on: {{ post.date | date: '%B %d, %Y' }}</span> <div class="content"> - {{ post.content | truncate: 220 }} <a href="{{ post.url | relative_url }}">(read more)</a> + {{ post.content | strip_html | normalize_whitespace | truncate: 220 }} <a href="{{ post.url | relative_url }}">(read more)</a> </div> </div> {% endfor %} -- GitLab