-
Notifications
You must be signed in to change notification settings - Fork 31
/
feed-atom.njk
33 lines (33 loc) · 1.17 KB
/
feed-atom.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---json
{
"permalink": "feed-atom.xml",
"eleventyExcludeFromCollections": true
}
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ site.url }}">
<title>{{ site.title }}</title>
<subtitle>{{ site.description }}</subtitle>
<link href="{{ permalink | absoluteUrl(site.url) }}" rel="self"/>
<link href="{{ site.url }}"/>
<updated>{{ collections.blog | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ site.url }}</id>
<generator>{{ site.engine }}</generator>
<author>
<name>Stride Community</name>
</author>
{%- for post in collections.blog | reverse %}
{%- set absolutePostUrl = post.url | absoluteUrl(site.url) %}
{%- set author = site.authors[post.data.author] %}
<entry>
<title>{{ post.data.title }}</title>
{%- if author -%}<author>
<name>{{ author.name }}</name>
</author>{%- endif -%}
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content xml:lang="{{ site.language }}" type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
</feed>