summaryrefslogtreecommitdiff
path: root/templates/themes/rss/rss.xml
diff options
context:
space:
mode:
authorMatthieu <matthieu@localhost.localdomain>2016-01-14 20:16:51 +0100
committerczaks <marcin@6irc.net>2016-01-26 00:51:39 +0100
commit028fd3df15b2e2edc96c5b84156b0b039ea16562 (patch)
tree5cd18f303da0b0e6fdc87f175adf5f5f86d881e2 /templates/themes/rss/rss.xml
parentd2de4419bddbb7b0e09ced1f01d3ccb45aecc50f (diff)
Added: RSS theme
Diffstat (limited to 'templates/themes/rss/rss.xml')
-rw-r--r--templates/themes/rss/rss.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/themes/rss/rss.xml b/templates/themes/rss/rss.xml
new file mode 100644
index 00000000..30fdb473
--- /dev/null
+++ b/templates/themes/rss/rss.xml
@@ -0,0 +1,28 @@
+{% filter remove_whitespace %}
+<?xml version="1.0" encoding="utf-8"?>
+<rss xmlns:dc="http://purl.org/dc/elements/1.1/"
+ version="2.0">
+ <channel>
+ <description>
+ <![CDATA[{{ settings.subtitle }}]]>
+ </description>
+ <title>{{ settings.title }}</title>
+ <generator>Tinyboard {{ config.version }}</generator>
+ <link>{{ settings.base_url }}{{ config.root }}{{ settings.html }}</link>
+ {% for post in recent_posts %}
+ <item>
+ <title>{{ post.board_name }}</title>
+ <description>
+ <![CDATA[
+ <a href="{{ settings.base_url }}{{ post.link }}">
+ {{ post.snippet }}
+ </a>
+ ]]>
+ </description>
+ <link>{{ settings.base_url }}{{ post.link }}</link>
+ <guid>{{ settings.base_url }}{{ post.link }}</guid>
+ </item>
+ {% endfor %}
+ </channel>
+</rss>
+{% endfilter %}