💄 style: standardise posts' summary & description
* Cleans up newlines and html tags. * Removes ellipsis from summary.
This commit is contained in:
parent
b5fae83f28
commit
f03a9b3c4f
@ -32,9 +32,9 @@
|
|||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
{% if post.description %}
|
{% if post.description %}
|
||||||
<p>{{ post.description }}</p>
|
<p>{{ post.description | striptags | safe }}</p>
|
||||||
{% elif post.summary %}
|
{% elif post.summary %}
|
||||||
<p>{{ post.summary | safe }}…</p>
|
<p>{{ post.summary | striptags | safe }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user