-
Notifications
You must be signed in to change notification settings - Fork 134
/
feed.xml
40 lines (39 loc) · 1.63 KB
/
feed.xml
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
34
35
36
37
38
39
40
---
layout: null
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<link>{{ '/' | absolute_url | xml_escape }}</link>
<atom:link href="{{ page.url | absolute_url }}" rel="self" type="application/rss+xml" />
<description>{{ site.description | xml_escape }}</description>
<language>en-us</language>
<pubDate>{{ site.posts[0].date | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
{% for post in site.posts %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{{ post.url | absolute_url | xml_escape }}</link>
<description>
{{ post.excerpt | xml_escape }}
{% capture continue_reading %}
<p>
<a href="{{ post.url | absolute_url | xml_escape }}"><strong>Continue reading…</strong></a>
<p>
{% endcapture %}
{{ continue_reading | xml_escape }}
</description>
<guid>{{ post.url | absolute_url | xml_escape }}</guid>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
{% assign author = site.data.authors[post.author] %}
{% if author %}
<atom:author>
<atom:name>{{ author.name | default: "" | xml_escape }}</atom:name>
<atom:uri>{{ author.web | xml_escape }}</atom:uri>
</atom:author>
{% endif %}
</item>
{% endfor %}
</channel>
</rss>