From 26aa6ba2e1ad2f47377876aab0f5f7d317e63ab0 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:11:56 +0800
Subject: [PATCH] Fix RSS feed not transforming input path
---
src/feed.njk | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/feed.njk b/src/feed.njk
index 6a0ef696..d3d225b3 100644
--- a/src/feed.njk
+++ b/src/feed.njk
@@ -12,20 +12,20 @@ eleventyComputed:
{{ sitemeta.siteDescription }}
- {{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }}
+ {{ collections["feed items"] | getNewestCollectionItemDate | dateToRfc3339 }}
{{ feedMeta.baseUrl }}
{{ sitemeta.siteAuthor.name }}
{{ sitemeta.siteAuthor.email }}
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
- {% set absolutePostUrl %}{{ item.url | absoluteUrl(feedMeta.baseUrl) }}{% endset %}
-
- {{ item.data.title | safe }}
-
- {{ item.date | dateToRfc3339 }}
- {{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}
- {{ item.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}
-
+ {% set absolutePostUrl %}{{ item.url | absoluteUrl(feedMeta.baseUrl) }}{% endset %}
+
+ {{ item.data.title | safe }}
+
+ {{ item.date | dateToRfc3339 }}
+ {{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}
+ {{ item.content | renderTransforms(item.data.page, feedMeta.baseUrl) }}
+
{%- endfor %}
\ No newline at end of file