Pass the rss validator
This commit is contained in:
@@ -5,20 +5,18 @@
|
||||
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>
|
||||
|
||||
<atom:link href="{{base_url}}blog/{%if user %}{{ user }}/{% endif %}rss.xml" rel="self" type="application/rss+xml" />
|
||||
{% for post in posts %}
|
||||
<item>
|
||||
<title> {{ post.title }} </title>
|
||||
<pubDate> {% if post.last_updated %} {{ post.last_updated }} {% else %} {{ post.creation_date }} {% 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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user