Ensure excerpts are in paragraphs
This commit is contained in:
parent
a47dbcff14
commit
86543cb33f
|
@ -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 }} …</p>
|
||||
{% endif %}
|
||||
|
||||
<a href="{{ post.url }}">Read more →</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
|
Reference in a new issue