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 %}
|
||||
{{ post.blocks.excerpt|raw }}
|
||||
{% else %}
|
||||
{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} …
|
||||
{% endif %}
|
||||
<a href="{{ post.url }}">Read more →</a>
|
||||
</article>
|
||||
|
|
Reference in a new issue