From 7ada67433e9f1c2eaf5cc77a643abfd91726357b Mon Sep 17 00:00:00 2001 From: zloylinux Date: Sun, 11 May 2025 20:02:21 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(feed):=20prioritise=20descri?= =?UTF-8?q?ption=20>=20summary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/tabi/templates/atom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/tabi/templates/atom.xml b/themes/tabi/templates/atom.xml index 8b54926..9956ad9 100644 --- a/themes/tabi/templates/atom.xml +++ b/themes/tabi/templates/atom.xml @@ -97,11 +97,11 @@ {{ page.permalink | safe }} {% if config.extra.full_content_in_feed %} {{ page.content }} - {% endif -%} - {% if page.summary -%} + {% endif -%} + {% if page.description -%} + {{ page.description }} + {% elif page.summary -%} {{ page.summary | striptags | trim_end_matches(pat=".") | safe }}… - {% elif page.description -%} - {{ page.description }} {% endif -%} {%- endfor %}