From 906033625cc3c3245120b5d211fd913d08114956 Mon Sep 17 00:00:00 2001 From: Emmanuel Godard <emmanuel.godard@lis-lab.fr> Date: Tue, 19 Dec 2023 15:37:57 +0100 Subject: [PATCH] only future date --- templates/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index c6ace27..647ad91 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,18 +6,19 @@ <ul> {% for article in articles_page.object_list %} <li> + {% if article.date >= article.date.now() %} <h1><time datetime="{{ article.date }}">{{ article.date|strftime('%b %d, %Y') }}</time></h1> <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }} {% if article.author %} - -- {{ article.author }} + <h3>{{ article.author }}</h3> {% endif %} - </a></h2> <p> {{ article.summary }} <a href="{{ SITEURL }}/{{ article.url }}"><em>Read more...</em></a> </p> - </li> + </li> + {% endif %} {% endfor %} </ul> {% if articles_page.has_other_pages() %} -- GitLab