Ensure excerpts are in paragraphs
This commit is contained in:
parent
a47dbcff14
commit
86543cb33f
|
@ -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 }} …
|
<p>{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} …</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a href="{{ post.url }}">Read more →</a>
|
<a href="{{ post.url }}">Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Reference in a new issue