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

32 lines
1.2 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
eleventyNavigation:
key: Feed
order: 3
2018-01-16 22:08:47 -05:00
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/feed/pretty-atom-feed.xsl" type="text/xsl"?>
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>