maia.crimew.gay/src/feed.njk
2023-01-20 16:34:12 +01:00

42 lines
1.3 KiB
Text

---
permalink: feed.xml
metadata:
title: maia blog
url: https://maia.crimew.gay
author:
name: maia arson crimew
email: maia@crimew.gay
feed:
subtitle: the maia blog :3
filename: feed.xml
path: feed/feed.xml
url: https://maia.crimew.gay/feed.xml
id: https://maia.crimew.gay/
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.feed.subtitle }}</subtitle>
<link href="{{ metadata.feed.url }}" rel="self"/>
<link href="{{ metadata.url }}"/>
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated>
<id>{{ metadata.feed.id }}</id>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.posts %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
{% if post.data.link %}
<link href="{{ post.data.link }}"/>
{% else %}
<link href="{{ absolutePostUrl }}"/>
{% endif %}
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
</feed>