Show excerpt if the block is empty
This commit is contained in:
parent
96d9205f49
commit
6c46d52432
|
@ -1,7 +1,7 @@
|
||||||
{% if post.summary %}
|
{% if post.summary %}
|
||||||
{{ post.summary|markdown }}
|
{{ post.summary|markdown }}
|
||||||
{% include 'pages/blog/read-more' %}
|
{% include 'pages/blog/read-more' %}
|
||||||
{% elseif post.blocks.excerpt %}
|
{% elseif post.blocks.excerpt is defined %}
|
||||||
{{ post.blocks.excerpt|markdown }}
|
{{ post.blocks.excerpt|markdown }}
|
||||||
{% include 'pages/blog/read-more' %}
|
{% include 'pages/blog/read-more' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue