forked from okestonia/opendata.riik.ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blogfeed.xml
28 lines (27 loc) · 1.16 KB
/
blogfeed.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
---
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 sortnews = site.blogi | where: "lang", "et" | sort:"submitted" | reverse %}
{% for blogi in sortnews %}
<item>
<name>{{ blogi.news_title | xml_escape }}</name>
{% if blogi.author %}
<dc:publisher>{{ blogi.author | xml_escape }}</dc:publisher>
{% endif %}
{% if blogi.preview %}
<description>{{ blogi.preview | xml_escape }}</description>
{% endif %}
<dct:created>{{ blogi.submitted | date: "%d/%m/%Y" }}</dct:created>
<link>{{ site.url }}{{ site.baseurl }}{{ blogi.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ site.baseurl }}{{ blogi.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>