Don't have to use excerpt block
This commit is contained in:
parent
76e7b5b222
commit
abc42cf82d
|
@ -18,6 +18,8 @@ use:
|
||||||
|
|
||||||
{% if post.blocks.excerpt %}
|
{% if post.blocks.excerpt %}
|
||||||
{{ post.blocks.excerpt|raw }}
|
{{ post.blocks.excerpt|raw }}
|
||||||
|
{% else %}
|
||||||
|
{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} …
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ post.url }}">Read more →</a>
|
<a href="{{ post.url }}">Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
|
|
Reference in a new issue