Skip to content
Snippets Groups Projects
Commit 74af3c52 authored by Lukas Schauer's avatar Lukas Schauer :unlock:
Browse files

added event stuff to feed.xml

parent a99105b1
No related branches found
No related tags found
No related merge requests found
...@@ -3,28 +3,39 @@ layout: null ...@@ -3,28 +3,39 @@ layout: null
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>{{ site.title | xml_escape }}</title> <title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description> <description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link> <link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" /> <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate> <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator> <generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.posts limit:10 %} {% for post in site.posts limit:10 %}
<item> <item>
<title>{{ post.title | xml_escape }}</title> <title>{% if post.categories contains 'event' %}Termin: {% endif %}{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description> <description>{% if post.categories contains 'event' %}
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate> {% capture eventstuff %}
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link> <p>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid> Anfang: {{ post.eventstart | date: "%d.%m.%Y %H:%M" }}<br />
{% for tag in post.tags %} Ende: {{ post.eventend | date: "%d.%m.%Y %H:%M" }}<br />
<category>{{ tag | xml_escape }}</category> Ort: {% if post.location %}{{ post.location }}{% else %}Free Software Lab{% endif %}
{% endfor %} {% if post.organizer %}<br />Organisation: {{ post.organizer }}{% endif %}
{% for cat in post.categories %} </p>
<category>{{ cat | xml_escape }}</category> {% endcapture %}
{% endfor %} {{ eventstuff | xml_escape }}
</item> {% endif %}
{% endfor %} {{ post.content | xml_escape }}</description>
</channel> <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss> </rss>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment