42 lines
1.5 KiB
Text
42 lines
1.5 KiB
Text
---json
|
|
{
|
|
"layout": null,
|
|
"permalink": "rss.xml",
|
|
"eleventyExcludeFromCollections": true,
|
|
"metadata": {
|
|
"title": "Mon Repos (Death's Domain)",
|
|
"subtitle": "A feed of all my posts on the fediverse",
|
|
"language": "en",
|
|
"url": "https://death.id.au/",
|
|
"author": {
|
|
"name": "Gordon Pedersen",
|
|
"email": "death.au@death.id.au"
|
|
}
|
|
}
|
|
}
|
|
---
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
{% from "macro-summary.njk" import summaryMacro %}
|
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.url }}" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>{{ metadata.title }}</title>
|
|
<link>{{ metadata.url }}</link>
|
|
<atom:link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self" type="application/rss+xml" />
|
|
<description>{{ metadata.subtitle }}</description>
|
|
<language>{{ metadata.language }}</language>
|
|
{%- for post in collections.feed | reverse %}
|
|
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %}
|
|
<item>
|
|
<title>{{ post.data.title }}</title>
|
|
<link>{{ absolutePostUrl }}</link>
|
|
<description>
|
|
{{ summaryMacro(post.data, post.url) | htmlToAbsoluteUrls(absolutePostUrl) }}
|
|
{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}
|
|
</description>
|
|
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
|
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
|
<guid>{{ absolutePostUrl }}</guid>
|
|
</item>
|
|
{%- endfor %}
|
|
</channel>
|
|
</rss>
|