Show excerpt if the block is empty

This commit is contained in:
Oliver Davies 2018-11-20 00:54:51 +00:00
parent 96d9205f49
commit 6c46d52432

View file

@ -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 %}