www/_src/feed/feed.njk

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-01-16 20:08:47 -07:00
---
# Metadata comes from _data/metadata.json
permalink: "{{ metadata.feed.path }}"
eleventyExcludeFromCollections: true
2018-01-16 20:08:47 -07: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>
{% set absoluteUrl %}{{ metadata.feed.path | url | absoluteUrl(metadata.url) }}{% endset %}
<link href="{{ absoluteUrl }}" rel="self"/>
2018-01-16 20:08:47 -07:00
<link href="{{ metadata.url }}"/>
2018-01-22 21:53:46 -07:00
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated>
<id>{{ metadata.feed.id }}</id>
2018-01-16 20:08:47 -07:00
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.posts | reverse %}
2018-01-27 22:22:40 -07:00
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
2018-01-16 20:08:47 -07:00
<entry>
<title>{{ post.data.title }}</title>
2018-01-27 22:22:40 -07:00
<link href="{{ absolutePostUrl }}"/>
2018-01-16 20:08:47 -07:00
<updated>{{ post.date | rssDate }}</updated>
2018-01-27 22:22:40 -07:00
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
2018-01-16 20:08:47 -07:00
</entry>
2018-01-27 22:22:40 -07:00
{%- endfor %}
2018-09-24 13:09:15 -06:00
</feed>