From a617d6fe72c0bdd40ea7e107887d74c9fa4477d2 Mon Sep 17 00:00:00 2001
From: Dave Patrick Caberto <64297935+SeaDve@users.noreply.github.com>
Date: Mon, 18 Sep 2023 00:26:07 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(atom):=20remove=20safe=20fil?=
=?UTF-8?q?ter;=20allow=20content=20&=20summary=20(#165)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
templates/atom.xml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/templates/atom.xml b/templates/atom.xml
index 09115c0..b654125 100644
--- a/templates/atom.xml
+++ b/templates/atom.xml
@@ -62,8 +62,9 @@
{{ page.permalink | safe }}
{% if config.extra.full_content_in_feed %}
- {{ page.content | safe }}
- {% elif page.summary -%}
+ {{ page.content }}
+ {% endif -%}
+ {% if page.summary -%}
{{ page.summary | striptags | safe | trim_end_matches(pat=".") }}…
{% elif page.description -%}
{{ page.description | striptags | safe }}