-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss-snippet.xml
More file actions
29 lines (29 loc) · 1.33 KB
/
rss-snippet.xml
File metadata and controls
29 lines (29 loc) · 1.33 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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.name | xml_escape }} (Snippet)</title>
<image>
<url>http://latetotheparty.co/interface/icon-512.png</url>
<title>{{ site.name | xml_escape }}</title>
<link>{{ site.url }}</link>
</image>
<description>Snippets of Late to the Party for social sharing.</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/rss-snippet.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:5 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.title | xml_escape }} {% if post.reference != undefined %} {{ post.reference }} {% else %} {{ site.url }}{{ post.url }}.html {% endif %}{{ post.snippet | xml_escape }} {% if post.categories != undefined %}{% for category in post.categories %}#{{ category }} {% endfor %}{% endif %}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
{% if post.reference %}
<link>{{ post.reference }}</link>
{% else %}
<link>{{ site.url }}{{ post.url }}.html</link>
{% endif %}
<guid isPermaLink="true">{{ site.url }}{{ post.url }}.html</guid>
</item>
{% endfor %}
</channel>
</rss>