-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
34 lines (34 loc) · 1.28 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
---
layout: none
title: RSS Feed
---
<?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>
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.site_url }}</link>
<atom:link href="{{ site.site_url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for page in site.pages limit:10 %}
{% if page.title != "Page Not Found" and page.title != "RSS Feed" %}
<item>
<title>{{ page.title | xml_escape }}</title>
<description>{{ page.description | xml_escape }}</description>
<link>{{ site.site_url }}{{ page.url }}</link>
<guid isPermaLink="true">{{ site.site_url }}{{ page.url }}</guid>
</item>
{% endif %}
{% endfor %}
{% for post in site.blog %}
{% unless post.draft %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
<link>{{ post.url | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.url }}</guid>
</item>
{% endunless %}
{% endfor %}
</channel>
</rss>