-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.njk
More file actions
22 lines (22 loc) · 785 Bytes
/
feed.njk
File metadata and controls
22 lines (22 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
permalink: /feed.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.name }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{%- for post in collections.posts.slice(0, 10) %}
<item>
<title>{{ post.data.title }}</title>
<description>{{ post.content | htmlToAbsoluteUrls(site.url) }}</description>
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
<link>{{ post.url | absoluteUrl(site.url) }}</link>
<guid isPermaLink="true">{{ post.url | absoluteUrl(site.url) }}</guid>
</item>
{%- endfor %}
</channel>
</rss>