From 21154d1c59134cd00e662b768ff5fe9bd3547c21 Mon Sep 17 00:00:00 2001 From: Michal Jirku Date: Mon, 19 Apr 2021 17:03:06 +0200 Subject: [PATCH] Add perex support --- _layouts/home.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index ccd229e..ba35adf 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -10,10 +10,7 @@ layout: default

{{ post.title }}

-

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

+

{% if post.perex -%}{{ post.perex }}{% else -%}{{ post.content | strip_html | truncatewords: 30 }}{% endif -%}