Remove list articles if not articles

This commit is contained in:
kitoy 2026-01-09 19:36:22 +01:00
parent 81aabb21ab
commit b1a1a521c2

View File

@ -41,6 +41,7 @@
<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>
</form>
{% if list_post %}
<h2> Les derniers articles de blog sur le serveur </h2>
<div class="list-articles" >
@ -59,10 +60,11 @@
<p> {{ article.subtitle }} </p>
</div>
<footer><a href="/blog//public_unified/{{ article.author }}/{{ article.title }}"> <button> Lire la suite </button> </a></footer>
</article>
{% endfor %}
{% endif %}
{% endblock %}
</main>