xmitter-11ty/content/feed/feed.njk

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-01-16 22:08:47 -05:00
---
# Metadata comes from _data/metadata.js
2022-07-15 15:42:48 -04:00
permalink: /feed/feed.xml
2018-01-16 22:08:47 -05:00
---
<?xml version="1.0" encoding="utf-8"?>
2022-07-15 15:42:48 -04:00
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.language }}">
2018-01-16 22:08:47 -05:00
<title>{{ metadata.title }}</title>
2022-07-15 15:42:48 -04:00
<subtitle>{{ metadata.description }}</subtitle>
<link href="{{ permalink | htmlBaseUrl(metadata.url) }}" rel="self"/>
<link href="{{ metadata.url | addPathPrefixToFullUrl }}"/>
2022-07-15 15:42:48 -04:00
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.url }}</id>
2018-01-16 22:08:47 -05:00
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.posts | reverse %}
{% set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.url) }}{% endset %}
2018-01-16 22:08:47 -05:00
<entry>
<title>{{ post.data.title }}</title>
2018-01-28 00:22:40 -05:00
<link href="{{ absolutePostUrl }}"/>
2022-07-15 15:42:48 -04:00
<updated>{{ post.date | dateToRfc3339 }}</updated>
2018-01-28 00:22:40 -05:00
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | transformWithHtmlBase(absolutePostUrl, post.url) }}</content>
2018-01-16 22:08:47 -05:00
</entry>
2018-01-28 00:22:40 -05:00
{%- endfor %}
2018-09-24 15:09:15 -04:00
</feed>