forked from ev3dev/ev3dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
36 lines (33 loc) · 1.06 KB
/
atom.xml
File metadata and controls
36 lines (33 loc) · 1.06 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
30
31
32
33
34
35
36
---
title: 'Atom news feed'
layout:
---
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>ev3dev News Feed</title>
<link href="{{ site.github.url }}"/>
<link type="application/atom+xml" rel="self" href="{{ site.github.url }}/news/atom.xml"/>
<updated>{{ site.time | date_to_rfc822 }}</updated>
<id>{{ site.github.url }}/news/atom.xml</id>
<author>
<name>The ev3dev team</name>
</author>
{% assign count = 0 %}
{% for post in site.posts %}
{% if post.categories contains "news" %}
{% assign count = count | plus: 1 %}
{% if count > 10 %}{% break %}{% endif %}
<entry>
<id>{{ site.github.url }}{{ post.id }}</id>
<link type="text/html" rel="alternate" href="{{ site.github.url }}{{ post.url }}"/>
<title>{{ post.title | xml_escape }}</title>
<updated>{{ post.date | date_to_rfc822 }}</updated>
<author>
<name>{{ post.author }}</name>
<uri>http://www.ev3dev.org/</uri>
</author>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endif %}
{% endfor %}
</feed>