From 719934275f3c55e958f48ea165280542b49b8f0b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 6 May 2021 19:06:56 +0200 Subject: restructure --- template/rss.xml.j2 | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 template/rss.xml.j2 (limited to 'template/rss.xml.j2') diff --git a/template/rss.xml.j2 b/template/rss.xml.j2 new file mode 100644 index 00000000..b9a29f70 --- /dev/null +++ b/template/rss.xml.j2 @@ -0,0 +1,48 @@ +{# +# Copyright (C) 2019, 2020 GNUnet e.V. +# +# This code is derived from code contributed to GNUnet eV +# by nikita . +# +# Permission to use, copy, modify, and/or distribute this software for +# any purpose with or without fee is hereby granted. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR +# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. +# +# SPDX-License-Identifier: 0BSD +#} + + + {% for siteconfitem in siteconf %} + + + {{ siteconfitem['rsstitle'] }} + {{ lang }} + {{ siteconfitem['rssdescr']|e }} + https://{{ siteconfitem['baseurl'] }}/ + {{ now }} + {% for newspostitem in newsposts %} + + https://{{ siteconfitem['baseurl'] }}/{{ lang }}{{ siteconfitem['newsloc'] }}{{ newspostitem['page'] }} + https://{{ siteconfitem['baseurl'] }}/{{ lang }}{{ siteconfitem['newsloc'] }}{{ newspostitem['page'] }} + {{ conv_date_rfc822(newspostitem["date"]) }} + {{ newspostitem['title']|e }} + + + {{ newspostitem['content'] }} + + ]]> + + + {% endfor %} + + {% endfor %} + -- cgit v1.2.3