💄 style: add "…" when using summary with <!-- more -->

Removes trailing periods, if they exist, befor adding "…".

Partially reverts f03a9b3.
This commit is contained in:
welpo
2023-08-30 16:40:47 +02:00
parent 718f477949
commit e72a8da596
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@
{% if post.description %}
<p>{{ post.description | striptags | safe }}</p>
{% elif post.summary %}
<p>{{ post.summary | striptags | safe }}</p>
<p>{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}</p>
{% endif %}
</div>