-
Notifications
You must be signed in to change notification settings - Fork 5
/
feed.xml
31 lines (31 loc) · 1.6 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
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self"
type="application/rss+xml"/>
{% for report in site.reports limit:20 %}
{% if report.state and report.state == 'published' %}
<item>
<title>
{% if report.subheading %}
{{ report.headline | append: report.subheading | xml_escape }}
{% else %}
{{ report.headline | xml_escape }}
{% endif %}
</title>
<description>{{ report.description | xml_escape }}</description>
<pubDate>{{ report.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ report.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ report.url | prepend: site.baseurl | prepend: site.url }}</guid>
<media:content url="{{ report.thumbnail | prepend: "/img/content/thumbnails/" | prepend: site.baseurl | prepend: site.url }}" type="image/*" medium="image" lang="en"/>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>