From 6c46d524326bcc729fd977373ff496e35764fe3c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 20 Nov 2018 00:54:51 +0000 Subject: [PATCH] Show excerpt if the block is empty --- source/_partials/pages/blog/teaser.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_partials/pages/blog/teaser.html.twig b/source/_partials/pages/blog/teaser.html.twig index 5b4b9891..3945c66b 100644 --- a/source/_partials/pages/blog/teaser.html.twig +++ b/source/_partials/pages/blog/teaser.html.twig @@ -1,7 +1,7 @@ {% if post.summary %} {{ post.summary|markdown }} {% include 'pages/blog/read-more' %} -{% elseif post.blocks.excerpt %} +{% elseif post.blocks.excerpt is defined %} {{ post.blocks.excerpt|markdown }} {% include 'pages/blog/read-more' %} {% else %}