Skip to content

Commit 25b2ab4

Browse files
committed
Add RSS for Python Events Calendar
1 parent 566f6ff commit 25b2ab4

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

python-events-export.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
---
3+
<?xml version="1.0" encoding="UTF-8"?>
4+
<?xml-stylesheet type="text/xsl" href="/static/xml/rss.xsl" media="all"?>
5+
<rss version="2.0"
6+
xmlns:atom="http://www.w3.org/2005/Atom"
7+
xmlns:dc="http://purl.org/dc/elements/1.1/"
8+
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
9+
>
10+
<channel>
11+
<title>Newsfeed for Python Events Calendar from {{ site.title | xml_escape }}</title>
12+
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
13+
<link>https://{{ site.domain }}/feed.xml</link>
14+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
15+
{% for conf in site.data.conferences limit:23 %}
16+
{% if conf.cfp != "TBA" %}
17+
<item>
18+
<title>{{ conf.title | xml_escape }} {{ conf.year }} Conference Deadline</title>
19+
<description><![CDATA[* name of the event: {{conf.title | xml_escape}} {{ conf.year}}<br/>* type of event: Conference <br/> * focus on Python: Yes<br/>* approximate number of attendees: Unknown<br/> * location (incl. country): {{conf.place | xml_escape }}<br/> * dates/times/recurrence (incl. time zone): {{ conf.date | xml_escape }}<br/> * HTML link : <a href="{{ conf.link | xml_escape }}">{{ conf.title | xml_escape }} {{ conf.year }}</a>]]></description>
20+
<pubDate>{{ conf.cfp | date: "%Y-%m-%d %H:%M:%S" | date_to_rfc822 }}</pubDate>
21+
<link>https://{{ site.domain }}/conference/{{conf.title | slugify}}-{{conf.year}}/</link>
22+
<guid isPermaLink="false">{{ conf.id }}</guid>
23+
<category>{{ conf.sub }}</category>
24+
</item>
25+
{% endif %}
26+
{% endfor %}
27+
</channel>
28+
</rss>

0 commit comments

Comments
 (0)