-
Notifications
You must be signed in to change notification settings - Fork 21
/
feed.xml
32 lines (32 loc) · 1.17 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
---
redirect_from:
- "/feed/"
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title | xml_escape }}</title>
<link href="{{ site.url }}{{ page.url }}" rel="self" />
<link href="{{ site.url }}/" />
<id>{{ site.url }}/</id>
<author>
<name>{{ site.author | xml_escape }}</name>
</author>
<updated>{{ site.time | date_to_xmlschema }}</updated>
{% for post in site.posts limit:20 %}
<entry>
<title type="text">{{ post.title | strip_html }}</title>
<link href="{{ site.url }}{{ post.url }}" />
<id>{{ site.url }}{{ post.url }}</id>
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{% if post.updated == null %}{{ post.date | date_to_xmlschema }}{% else %}{{ post.updated | append: '@12am' | date_to_xmlschema }}{% endif %}</updated>
<summary type="html">{{ post.excerpt | strip_html | xml_escape }}</summary>
<content type="html">{{ post.content | xml_escape }}</content>
{% for category in post.categories %}
<category term="{{ category }}" />
{% endfor %}
{% for tag in post.tags %}
<category term="{{ tag }}" />
{% endfor %}
</entry>
{% endfor %}
</feed>