-
Notifications
You must be signed in to change notification settings - Fork 10
/
feed.njk
31 lines (31 loc) · 1.12 KB
/
feed.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
---json
{
"eleventyExcludeFromCollections": true,
"permalink": "/feed.xml",
"metadata": {
"title": "WPEwebkit.org",
"description": "Release announcements and security advisories from WPEwebkit.org.",
"url": "https://wpewebkit.org/",
"feedUrl": "https://wpewebkit.org/feed.xml"
}
}
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ metadata.title }}</title>
<description>{{ metadata.description }}</description>
<link href="{{ metadata.feedUrl }}" rel="self"/>
<link href="{{ metadata.url }}"/>
<updated>{{ collections.recentPosts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.url }}</id>
{%- for post in collections.recentPosts %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
</feed>