From e72a8da596ad7f44cee59141dc9214736a165bb7 Mon Sep 17 00:00:00 2001 From: welpo Date: Wed, 30 Aug 2023 16:40:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20add=20"=E2=80=A6"=20whe?= =?UTF-8?q?n=20using=20summary=20with=20``?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes trailing periods, if they exist, befor adding "…". Partially reverts f03a9b3. --- templates/atom.xml | 2 +- templates/macros/list_posts.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/atom.xml b/templates/atom.xml index 3aa11f0..2bb2a8e 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -75,7 +75,7 @@ {{ page.permalink | safe }} {% if page.summary -%} - {{ page.summary | striptags | safe }} + {{ page.summary | striptags | safe | trim_end_matches(pat=".") }}… {% elif page.description -%} {{ page.description | striptags | safe }} {% endif -%} diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html index 1b12c68..bba9aca 100644 --- a/templates/macros/list_posts.html +++ b/templates/macros/list_posts.html @@ -34,7 +34,7 @@ {% if post.description %}

{{ post.description | striptags | safe }}

{% elif post.summary %} -

{{ post.summary | striptags | safe }}

+

{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…

{% endif %}