symposion_app/pinaxcon/templates/cms_pages/news_index_page.rss
Christopher Neugebauer 40a4df3767 Fixes for 20160718 (#54)
* Simple form input fields now use TakeFlight styling

* Styles the form widgets as per the styles in our CSS

* Styling of TextArea now matches the remaining input types

* Adds is_last modifier to navigation dropdown

* Adds admin for talk, tutorial, and miniconf proposals

* Adds an RSS feed

* Adds a link to the RSS page

* Unbreaks the old news index page

* Adds never_cache to the login page, removes the never cache middleware from the settings
2016-07-20 07:31:13 +10:00

35 lines
1.1 KiB
XML

{% load wagtailcore_tags %}
{% load i18n %}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>
{{ SITE_NAME }} | {{ page.title }}
</title>
<link>{{ request.scheme }}://{{ request.get_host }}</link>
<description>Recent content from {{ SITE_NAME }}</description>
<generator>{{ SITE_NAME }}</generator>
<atom:link href="{{ request.scheme }}://{{ request.get_host }}{{ page.url }}rss" rel="self" type="application/rss+xml" />
{% if page.child_pages %}
{% for item in page.child_pages %}
<item>
<title>{{ item.title }}</title>
<link>{{ request.scheme }}://{{ request.get_host }}{{ item.url }}</link>
<guid>{{ request.scheme }}://{{ request.get_host }}{{ item.url }}</guid>
<pubDate>{{ item.date|date:"D, d M Y 00:00:00 +1000" }}</pubDate>
<description>
&lt;p&gt;
{{ item.intro|richtext|force_escape }}
&lt;/p&gt;
&lt;p&gt;
{{ item.body|richtext|force_escape }}
&lt;/p&gt;
</description>
</item>
{% endfor %}
{% endif %}
</channel>
</rss>