ds-site/Resources/Private/Templates/RssFeed.xml
Daniel Siepmann 8bcdec5d94 Finally migrate RSS Feed
Misusing the sitemap implementation was a bad idea and broke for every
major update.

I now finally migrate to custom implementation which should remove the
issues for future.
2024-02-07 18:45:17 +01:00

40 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<f:if condition="{categoryId}">
<f:then>
<title>Daniel Siepmann - Coding is Art - Blog Posts {categoryTitle}</title>
<description>List of {categoryTitle} blog posts at daniel-siepmann.de</description>
<link>{f:uri.typolink(parameter: 't3://page?uid=11', additionalParams: '&topic_uid={categoryId}', absolute: 1)}</link>
<atom:link href="{f:uri.typolink(parameter: 't3://page?uid=1&type=1707321482', additionalParams: '&feed=blog-posts&category_uid={categoryId}', absolute: 1)}" rel="self" type="application/rss+xml" />
</f:then>
<f:else>
<title>Daniel Siepmann - Coding is Art - All Blog Posts</title>
<description>List of blog posts at daniel-siepmann.de</description>
<link>{f:uri.typolink(parameter: 't3://page?uid=1', absolute: 1)}</link>
<atom:link href="{f:uri.typolink(parameter: 't3://page?uid=1&type=1707321482', additionalParams: '&feed=blog-posts', absolute: 1)}" rel="self" type="application/rss+xml" />
</f:else>
</f:if>
<lastBuildDate>{f:format.date(date: 'now', format: 'D, d M Y H:i:s O')}</lastBuildDate>
<ttl>1800</ttl>
<f:for each="{pages}" as="post">
<f:if condition="{post.data.doktype} < 200">
{f:render(section: 'Item', arguments: {
item: post.data,
description: post.description
})}
</f:if>
</f:for>
</channel>
</rss>
<f:section name="Item">
<item>
<title>{item.title}</title>
<description>{description -> f:format.cdata()}</description>
<link>{f:uri.typolink(parameter: 't3://page?uid={item.uid}', absolute: 1)}</link>
<pubDate>{f:format.date(date: item.lastUpdated, format: 'D, d M Y H:i:s O')}</pubDate>
<guid isPermaLink="true">{f:uri.typolink(parameter: 't3://page?uid={item.uid}', absolute: 1)}</guid>
</item>
</f:section>