From 68c35b02f8c09e21ecff48f61bad6da3d96ce337 Mon Sep 17 00:00:00 2001 From: tzinm Date: Sun, 11 May 2025 14:33:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(feed):=20prioritise=20descri?= =?UTF-8?q?ption=20>=20summary=20(#525)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/atom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/atom.xml b/templates/atom.xml index 8b54926..1c8e18b 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -98,10 +98,10 @@ {% if config.extra.full_content_in_feed %} {{ page.content }} {% endif -%} - {% if page.summary -%} - {{ page.summary | striptags | trim_end_matches(pat=".") | safe }}… - {% elif page.description -%} + {% if page.description -%} {{ page.description }} + {% elif page.summary -%} + {{ page.summary | striptags | trim_end_matches(pat=".") | safe }}… {% endif -%} {%- endfor %}