Don't have to use excerpt block

This commit is contained in:
Oliver Davies 2015-07-03 01:37:02 +01:00
parent 76e7b5b222
commit abc42cf82d

View file

@ -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 &rarr;</a>
</article>