From ff3cda8402eaea5cb64707d1e382e9522efd06b0 Mon Sep 17 00:00:00 2001 From: Emmanuel Godard <emmanuel.godard@lis-lab.fr> Date: Tue, 19 Dec 2023 15:43:34 +0100 Subject: [PATCH] now --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 647ad91..483823f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@ <ul> {% for article in articles_page.object_list %} <li> - {% if article.date >= article.date.now() %} + {% if 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 }} -- GitLab