Files
godot-website/pages/rss.xml
2025-01-16 20:07:32 +01:00

33 lines
1.1 KiB
XML

---
permalink: /rss.xml
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>{{ site.data.meta.title }}</title>
<link>{{ site.meta.url }}</link>
<description>{{ site.data.description }}</description>
<atom:link href="{{ site.url }}/rss.xml" rel="self" type="application/rss+xml" />
{% assign latest_posts = site.article | sort:"date" | reverse %}
{% for post in latest_posts limit:15 %}
<item>
<title>{{ post.title | escape }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<summary>{{ post.excerpt | escape }}</summary>
<description>{{ post.content | markdownify | escape }}</description>
{% for category in post.categories %}
<category>{{ site.data.categories[category][0].name }}</category>
{% endfor %}
<guid>{{ site.url }}{{ post.url }}</guid>
<dc:creator>{{ post.author | escape }}</dc:creator>
<pubDate>{{ post.date | date: "%a, %d %b %Y %X +0000" }}</pubDate>
<image>{{ site.url }}{{ post.image }}</image>
</item>
{% endfor %}
</channel>
</rss>