agnes-love/feed.xml

39 lines
1.2 KiB
XML
Raw Normal View History

2026-06-25 00:57:39 +00:00
---
permalink: /feed.xml
eleventyExcludeFromCollections: true
templateEngine: njk
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.name }}</title>
<subtitle>{{ site.description }}</subtitle>
<link href="{{ site.url }}/feed.xml" rel="self"/>
<link href="{{ site.url }}/"/>
{% if collections.posts and (collections.posts | length) %}
<updated>{{ collections.posts[0].date | htmlDateString }}T00:00:00Z</updated>
{% else %}
<updated>{{ '1970-01-01' }}</updated>
{% endif %}
<id>{{ site.url }}/</id>
<author>
<name>{{ site.author }}</name>
</author>
{% if collections.posts and (collections.posts | length) %}
{% for post in collections.posts | slice(0, 20) %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | htmlDateString }}T00:00:00Z</updated>
<id>{{ site.url }}{{ post.url }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(site.url) }}</content>
{% if post.data.description %}
<summary>{{ post.data.description }}</summary>
{% endif %}
{% for tag in post.data.tags %}
<category term="{{ tag }}"/>
{% endfor %}
</entry>
{% endfor %}
{% endif %}
</feed>