forked from okestonia/opendata.riik.ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasetfeed.xml
32 lines (31 loc) · 1.28 KB
/
datasetfeed.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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://www.purl.org/dc/terms/">
<channel>
<title>{{ site.title.et | xml_escape }}</title>
<description>{% if site.description %}{{ site.description.et | xml_escape }}{% endif %}</description>
<link>{{ site.url }}{{ site.baseurl }}</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
{% assign sortdata = site.datasets | sort:"date_modified" | reverse %}
{% for set in sortdata %}
<item>
<name>{{ set.title | xml_escape }}</name>
{% if set.organization %}
<dct:publisher>{{ set.organization | xml_escape }}</dct:publisher>
{% endif %}
{% if set.notes %}
<description>{{ set.notes | xml_escape }}</description>
{% endif %}
{% if set.license %}
<dct:license>{{ set.license }}</dct:license>
{% endif %}
<dct:modified>{{ set.date_modified | date_to_rfc822 }}</dct:modified>
<dct:created>{{ set.date_issued | date_to_rfc822 }}</dct:created>
<link>{{ site.domain }}{{ set.url }}</link>
<guid isPermaLink="true">{{ site.domain }}{{ set.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>