Ensure excerpts are in paragraphs

This commit is contained in:
Oliver Davies 2015-07-21 18:03:01 +01:00
parent a47dbcff14
commit 86543cb33f

View file

@ -19,8 +19,9 @@ use:
{% if post.blocks.excerpt %}
{{ post.blocks.excerpt|raw }}
{% else %}
{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} …
<p>{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} &hellip;</p>
{% endif %}
<a href="{{ post.url }}">Read more &rarr;</a>
</article>
{% endfor %}