Fix incorrect RSS Feed generator

This commit is contained in:
2026-10-28 22:29:36 +01:00
parent cb713f5bf7
commit 8281152154
2 changed files with 22 additions and 12 deletions
+3 -4
View File
@@ -12,12 +12,11 @@
<description> {{ blog_description }} </description>
{% endif %}
<language>fr</language>
<lastBuildDate> {{ last_build_date }} </lastBuildDate>
{% for post in posts %}
<item>
<title> {{ post.title }} </title>
<pubdate> {% if post.last_updated %} {{ post.last_updated }} {% else %} {{ post.time }} {% endif %} </pubdate>
<pubdate> {% if post.last_updated %} {{ post.last_updated }} {% else %} {{ post.creation_date }} {% endif %} </pubdate>
<link> {{base_url}}/{{ url_for('blog.viewArticle', username=post.author, title_id=post.title_id) }}</link>
<guid> {{base_url}}/{{ url_for('blog.viewArticle', username=post.author, title_id=post.title_id) }} </guid>
@@ -26,7 +25,7 @@
</description>
<content:encoded>
{{ post.content | safe }}
{{ post.content }}
</content:encoded>
</item>
{% endfor %}