-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
36 lines (32 loc) · 1.2 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
---
layout: none
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{{ site.title }}</title>
<link>{{ site.url }}</link>
<description>{{ site.description }}</description>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<language>en-us</language>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts %}
<item>
<title>{{ post.title | escape }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<description>{{ post.excerpt | strip_html | escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<guid>{{ site.url }}{{ post.id }}</guid>
{% if post.image %}
<media:content url="{{ site.url }}/{{ post.image }}" />
{% endif %}
<content:encoded><![CDATA[
{% if post.image %}
<p><img src="{{ site.url }}/{{ post.image }}" alt="{{ post.title | escape }}" /></p>
{% endif %}
{{ post.content }}
]]></content:encoded>
</item>
{% endfor %}
</channel>
</rss>