From b6849376bb715e38222ab596dd2d81c4a9539970 Mon Sep 17 00:00:00 2001 From: Emmanuel Godard <emmanuel.godard@lis-lab.fr> Date: Tue, 19 Dec 2023 16:08:47 +0100 Subject: [PATCH] correct datetime diff --- templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index eb7568e..215be3e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,10 +6,10 @@ <ul> {% for article in articles_page.object_list %} <li> - {% if article.date >= article.date.utcnow() %} + {% if article.date.isocalendar() >= article.date.today().isocalendar() %} <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 }} + title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> {% if article.author %} <h3>{{ article.author }}</h3> {% endif %} -- GitLab