forked from jeremenichelli/personal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml.liquid
24 lines (24 loc) · 1005 Bytes
/
feed.xml.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
permalink: /feed.xml
excludeFromSitemap: true
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}/</link>
<atom:link href="{{ '/feed.xml' | prepend: site.url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ collections.archive[0].date | date: '%a, %d %b %Y 00:00:00 %z' }}</pubDate>
<lastBuildDate>{{ collections.archive[0].date | date: '%a, %d %b %Y 00:00:00 %z' }}</lastBuildDate>
{% for post in collections.archive %}
<item>
<title>{{ post.data.title }}</title>
<description>{{ post.data.excerpt }}</description>
<pubDate>{{ post.date | date: '%a, %d %b %Y 00:00:00 %z' }}</pubDate>
<link>{{ post.url | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>