-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathfeed.xml
More file actions
25 lines (25 loc) · 1.27 KB
/
feed.xml
File metadata and controls
25 lines (25 loc) · 1.27 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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% assign sorted_devices = site.devices | where_exp: 'device', 'device.tags.size > 0' | sort: 'date' | reverse %}
{% for device in sorted_devices limit:10 %}
<item>
<title>{{ device.title | xml_escape }} {{ device.subtitle | xml_escape }}</title>
<description>{{ device.excerpt | strip_html | xml_escape | truncatewords: 50 }}</description>
<pubDate>{{ device.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.url }}{{ device.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ device.url }}</guid>
{% if device.screenshot %}
<media:content medium="image" url="{{ site.url }}{{ device.screenshot }}" type="image/png" />
{% endif %}
</item>
{% endfor %}
</channel>
</rss>