2021-12-12 15:28:19 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-02-18 15:14:47 +01:00
|
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
2021-12-12 15:28:19 +01:00
|
|
|
<channel>
|
|
|
|
<title>{{ title }}</title>
|
|
|
|
<link>{{ log_path }}</link>
|
|
|
|
<description>Collective log writing using XMPP chat groups and LogBot.</description>
|
|
|
|
<lastBuildDate>{{ date }}</lastBuildDate>
|
2022-02-18 15:17:30 +01:00
|
|
|
<atom:link href="{{ feed_path }}" rel="self" type="application/rss+xml" />
|
2022-02-18 12:23:07 +01:00
|
|
|
{% for x, post in db["messages"].items() %}
|
|
|
|
<item>
|
2022-02-18 16:11:40 +01:00
|
|
|
<title>{{ title }} #{{ x }}</title>
|
2021-12-12 15:28:19 +01:00
|
|
|
<link>{{ log_path }}#{{ x }}</link>
|
2022-02-18 12:23:07 +01:00
|
|
|
<guid>{{ log_path }}#{{ x }}</guid>
|
2022-02-18 16:51:52 +01:00
|
|
|
<description>
|
|
|
|
{% if 'media' in post %}
|
|
|
|
<p class="post">
|
|
|
|
{% if 'image' in post.media.type %}
|
2022-02-18 16:53:12 +01:00
|
|
|
<img src="{{ baseurl }}{{ post.media.path }}" loading="lazy"></img>
|
2022-02-18 16:51:52 +01:00
|
|
|
{% elif 'application' in post.media.type %}
|
|
|
|
<iframe src="{{ baseurl }}{{ post.media.path }}" loading="lazy"></iframe>
|
|
|
|
{% elif 'audio' in post.media.type %}
|
|
|
|
<audio src="{{ baseurl }}{{ post.media.path }}" preload="none"></audio>
|
|
|
|
{% elif 'video' in post.media.type %}
|
|
|
|
<video src="{{ baseurl }}{{ post.media.path }}" preload="none"></video>
|
|
|
|
{% else %}
|
|
|
|
The media file is not added to the RSS feed :(.
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p class="post">{{ post.post }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</description>
|
|
|
|
{% if 'media' in post %}<enclosure url="{{ baseurl }}{{ post.media.path }}" length="{{ post.media.size }}" type="{{ post.media.type }}" />{% endif %}
|
2021-12-12 15:28:19 +01:00
|
|
|
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LogBot</dc:creator>
|
|
|
|
<pubDate>{{ post.date }}</pubDate>
|
2022-02-18 12:23:07 +01:00
|
|
|
</item>
|
|
|
|
{% endfor %}
|
2021-12-12 15:28:19 +01:00
|
|
|
</channel>
|
|
|
|
</rss>
|