Files
pywallter/templates/blog_rss.xml
T
kitoy b2dbe5c8c9 Work in blog section
- Arrange the rss feed
- The articles are listed in chronological order
- Test the doublon for new article
2026-10-31 01:27:49 +01:00

37 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<atom:link href="https://{{base_url}}]/blog/{%if user %}{{ user }}/{% endif %}rss.xml" rel="self" type="application/rss+xml" />
<channel>
<title> Le blog de {{ blog_name }} </title>
<link> {{ base_url }}/blog/ </link>
{% if blog_description %}
<description> {{ blog_description }} </description>
{% endif %}
<language>fr</language>
{% for post in posts %}
<item>
<title> {{ post.title }} </title>
<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>
<description>
{{ post.subtitle }}
</description>
<content:encoded>
{{ post.content }}
</content:encoded>
</item>
{% endfor %}
</channel>
</rss>