From b432127a50668318ae2131d736f56746c05585d7 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Feb 2022 16:51:52 +0100 Subject: [PATCH] adding baseurl to url + else statement to debug why media files are not included in --- LogBot/template.rss | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/LogBot/template.rss b/LogBot/template.rss index ea2f0e6..b441a28 100644 --- a/LogBot/template.rss +++ b/LogBot/template.rss @@ -11,10 +11,26 @@ {{ title }} #{{ x }} {{ log_path }}#{{ x }} {{ log_path }}#{{ x }} - - {% if 'media' in post %}{% endif %} + + {% if 'media' in post %} +

+ {% if 'image' in post.media.type %} + + {% elif 'application' in post.media.type %} + + {% elif 'audio' in post.media.type %} + + {% elif 'video' in post.media.type %} + + {% else %} + The media file is not added to the RSS feed :(. + {% endif %} +

+ {% else %} +

{{ post.post }}

+ {% endif %} +
+ {% if 'media' in post %}{% endif %} LogBot {{ post.date }}