1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Make RSS feed valid (#2338)

This commit is contained in:
oleole39 2024-05-14 13:03:35 +02:00 committed by GitHub
parent 81909ed9fe
commit b37c463c60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,17 +9,17 @@
>
<channel>
<title>YunoHost apps catalog News</title>
<link>{{ url_for('news_rss')}}</link>
<atom:link href="{{ url_for('news_rss')}}" rel="self" type="application/rss+xml" />
<link>{{ url_for('news_rss', _external=True)}}</link>
<atom:link href="{{ url_for('news_rss', _external=True)}}" rel="self" type="application/rss+xml" />
<description>YunoHost apps catalog news</description>
{%- for date, news in news_per_date.items() %}
{%- for status in ("added", "repaired", "broke", "removed") %}i
{%- for status in ("added", "repaired", "broke", "removed") %}
{%- for app, url in news[status] %}
{% set manifest = catalog["apps"][app]["manifest"] %}
<item>
<title>[{{ status|capitalize }}] {{ manifest['name'] }}</title>
<link>{{ url_for('app_info', app_id=app) }}</link>
<guid>{{ app }}#{{ date|format_datetime("%Y%m%d") }}</guid>
<link>{{ url_for('app_info', app_id=app, _external=True) }}</link>
<guid isPermaLink="false">{{ app }}#{{ date|format_datetime("%Y%m%d") }}</guid>
<pubDate>{{ date|format_datetime("%a, %d %b %Y %H:%M:%S +0000") }}</pubDate>
<description>{{ manifest["description"].get("en") }}</description>
<content:encoded>{{ manifest["description"].get("en") }}</content:encoded>