Blog section correction RSS

This commit is contained in:
kitoy 2026-01-26 03:38:17 +01:00
parent 5abbf367ab
commit a4fe70de60
4 changed files with 7 additions and 6 deletions

View File

@ -41,7 +41,7 @@
<p class="center"><a href="{{ url_for('loginlogout.lost_password') }}"> Mouarf j'ai perdu mon mot de passe </a> </p> <p class="center"><a href="{{ url_for('loginlogout.lost_password') }}"> Mouarf j'ai perdu mon mot de passe </a> </p>
<button class="btn btn-default btn-primary" type="submit"> Login </button> <button class="btn btn-default btn-primary" type="submit"> Login </button>
</form> </form>
{% if list_post %} {% if list_posts %}
<h2> Les derniers articles de blog sur le serveur </h2> <h2> Les derniers articles de blog sur le serveur </h2>
<div class="list-articles" > <div class="list-articles" >
@ -49,7 +49,7 @@
<article> <article>
<header> <header>
<h3> {{ article.title }} </h3> <h3> {{ article.title }} </h3>
<h5> par <a href="/blog/{{ article.author }}/">/{{ article.author }}</a> </h5> <h5> par <a href="/blog/{{ article.author }}/">{{ article.author }}</a> </h5>
<br/> <br/>
<small> Créé le : {{ article.creation_date }} </small> <br/> <small> Créé le : {{ article.creation_date }} </small> <br/>
{% if article.last_updated %} {% if article.last_updated %}

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title> Le Blog du serveur </title> <title> Le Blog du serveur </title>
<link rel="stylesheet" href="/{{author}}/blog.css" type="text/css"> <link rel="stylesheet" href="/{{ author }}/blog.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
</head> </head>
@ -13,8 +13,9 @@
{% else %} {% else %}
<a href="/blog/{{ author }}/rss.xml"> S'abonner au flux RSS </a>
<div class="articles"> <div class="articles">
<a href="/blog/{{ author }}/rss.xml"> S'abonner au fl RSS </a>
{% for post in posts %} {% for post in posts %}
<h2 class="index"> {{ post.title }} </h2> <h2 class="index"> {{ post.title }} </h2>

View File

@ -20,7 +20,7 @@
<div class="articles"> <div class="articles">
<a href="/blog/rss.xml"> S'abonner au flux RSS </a> <a href="/blog/rss.xml"> Suivre ce blog par RSS </a>
{% for post in posts %} {% for post in posts %}
<h2 class="index"> {{ post.title }}</h2> <h2 class="index"> {{ post.title }}</h2>

View File

@ -223,7 +223,7 @@ def viewuser(author):
posts=[dict(title=post[0], subtitle=post[1], creation_date=post[2], last_updated=post[3], author=post[4], status=post[5])] + posts posts=[dict(title=post[0], subtitle=post[1], creation_date=post[2], last_updated=post[3], author=post[4], status=post[5])] + posts
return render_template('index_author_blog.html', section='Blog', posts=posts, author=author) return render_template('index_blog.html', section='Blog', posts=posts, author=author)
@blog.route('/blog/<author>/rss.xml', methods=['GET']) @blog.route('/blog/<author>/rss.xml', methods=['GET'])
def viewauthorrss(author): def viewauthorrss(author):