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 %} {% if post.blocks.excerpt %}
{{ post.blocks.excerpt|raw }} {{ post.blocks.excerpt|raw }}
{% else %} {% else %}
{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} &hellip; <p>{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} &hellip;</p>
{% endif %} {% endif %}
<a href="{{ post.url }}">Read more &rarr;</a> <a href="{{ post.url }}">Read more &rarr;</a>
</article> </article>
{% endfor %} {% endfor %}