Repository navigation
Expand file tree
/
Copy pathfeed.xml
More file actions
41 lines (37 loc) · 1.38 KB
/
Copy pathfeed.xml
File metadata and controls
41 lines (37 loc) · 1.38 KB
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
41
---
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/"
xmlns:atom="http://www.w3.org/2005/Atom">
<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 | replace: ' ', '%20' }}</link>
<description>{{ post.excerpt | strip_html | escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<guid>{{ site.url }}{{ post.id | replace: ' ', '%20' }}</guid>
{% if post.image %}
{% assign img_url = post.image | prepend: site.url %}
<media:content url="{{ img_url }}" />
{% endif %}
<content:encoded><![CDATA[
{% if post.image %}
{% assign img_url = post.image | prepend: site.url %}
<p><img src="{{ img_url }}" alt="{{ post.title | escape }}" /></p>
{% endif %}
{{ post.content | rss_prepare: site.url }}
]]></content:encoded>
</item>
{% endfor %}
</channel>
</rss>