xmitter-11ty/feed/feed.njk

28 lines
955 B
Plaintext
Raw Normal View History

2018-01-16 22:08:47 -05:00
---
permalink: feed/feed.xml
eleventyExcludeFromCollections: true
2018-01-16 22:08:47 -05:00
---
<?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"/>
2018-01-16 22:08:47 -05:00
<link href="{{ metadata.url }}"/>
2018-01-22 23:53:46 -05:00
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated>
<id>{{ metadata.feed.id }}</id>
2018-01-16 22:08:47 -05:00
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
2018-01-28 00:22:40 -05:00
{%- for post in collections.posts %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(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 }}"/>
2018-01-16 22:08:47 -05:00
<updated>{{ post.date | rssDate }}</updated>
2018-01-28 00:22:40 -05:00
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</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>