Fix RSS feed not transforming input path

This commit is contained in:
Helen Chong 2024-12-27 10:11:56 +08:00
parent f9fdb7ae23
commit 26aa6ba2e1
1 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@ eleventyComputed:
<subtitle>{{ sitemeta.siteDescription }}</subtitle>
<link href="{{ sitemeta.feedUrl }}" rel="self"/>
<link href="{{ sitemeta.siteUrl }}"/>
<updated>{{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<updated>{{ collections["feed items"] | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ feedMeta.baseUrl }}</id>
<author>
<name>{{ sitemeta.siteAuthor.name }}</name>
@ -25,7 +25,7 @@ eleventyComputed:
<link href="{{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}"/>
<updated>{{ item.date | dateToRfc3339 }}</updated>
<id>{{ feedMeta.baseUrl if absolutePostUrl.includes("false") else absolutePostUrl }}</id>
<content type="html">{{ item.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
<content type="html">{{ item.content | renderTransforms(item.data.page, feedMeta.baseUrl) }}</content>
</entry>
{%- endfor %}
</feed>