aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/by_rel.rss
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/by_rel.rss')
-rw-r--r--tmpl/by_rel.rss17
1 files changed, 17 insertions, 0 deletions
diff --git a/tmpl/by_rel.rss b/tmpl/by_rel.rss
new file mode 100644
index 0000000..0ba3dc8
--- /dev/null
+++ b/tmpl/by_rel.rss
@@ -0,0 +1,17 @@
+[%- USE date -%]
+<?xml version="1.0"?>
+
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Mageia [% rel %] Advisories</title>
+ <link>[% config.site_url %]</link>
+ <description>Mageia [% rel %] Advisories</description>
+ <language>en</language>
+
+ <atom:link href="[% config.site_url %]/[% basename.rel(rel) %].rss" rel="self" type="application/rss+xml" />
+
+ [%- FOR adv IN advdb.by_rel.$rel -%]
+ [% INCLUDE advisory_item.rss %]
+ [%- END -%]
+ </channel>
+</rss>