Skip to content
Snippets Groups Projects
Commit b6849376 authored by Emmanuel Godard's avatar Emmanuel Godard
Browse files

correct datetime diff

parent 08575a3f
Branches
No related tags found
No related merge requests found
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<ul> <ul>
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<li> <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> <h1><time datetime="{{ article.date }}">{{ article.date|strftime('%b %d, %Y') }}</time></h1>
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" <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 %} {% if article.author %}
<h3>{{ article.author }}</h3> <h3>{{ article.author }}</h3>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment