From be277dcd5b65802925b3032336237b9ef4220faa Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Sun, 17 Sep 2023 21:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(atom):=20don't=20make=20cont?= =?UTF-8?q?ent=20and=20summary=20mutually=20exclusive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary tag should be able to exist even when there's content tag. --- templates/atom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/atom.xml b/templates/atom.xml index 07ad92ca..b6541256 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -63,7 +63,8 @@ {{ page.permalink | safe }} {% if config.extra.full_content_in_feed %} {{ page.content }} - {% elif page.summary -%} + {% endif -%} + {% if page.summary -%} {{ page.summary | striptags | safe | trim_end_matches(pat=".") }}… {% elif page.description -%} {{ page.description | striptags | safe }}