maia.crimew.gay/src/feed.njk

43 lines
1.3 KiB
Text
Raw Normal View History

2023-01-20 15:34:12 +00:00
---
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>
2023-05-10 13:17:54 +00:00
<content type="html">{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
2023-01-20 15:34:12 +00:00
</entry>
{%- endfor %}
</feed>