From b1a1a521c25126a0f1303a4ccc9f3566cb4f937e Mon Sep 17 00:00:00 2001 From: kitoy Date: Fri, 9 Jan 2026 19:36:22 +0100 Subject: [PATCH] Remove list articles if not articles --- templates/accueil.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/templates/accueil.html b/templates/accueil.html index 833ec06..68c5962 100644 --- a/templates/accueil.html +++ b/templates/accueil.html @@ -41,29 +41,31 @@

Mouarf j'ai perdu mon mot de passe

-

Les derniers articles de blog sur le serveur

+ {% if list_post %} +

Les derniers articles de blog sur le serveur

{% for article in list_posts %}
-

{{ article.title }}

-
par /{{ article.author }}
-
- Créé le : {{ article.creation_date }}
- {% if article.last_updated %} - Modifié le : {{ article.last_updated }}
+

{{ article.title }}

+
par /{{ article.author }}
+
+ Créé le : {{ article.creation_date }}
+ {% if article.last_updated %} + Modifié le : {{ article.last_updated }}
{% endif %}

{{ article.subtitle }}

- - + + +
{% endfor %} - - {% endblock %} + {% endif %} + {% endblock %}