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

only future date

parent b11aa959
No related branches found
No related tags found
No related merge requests found
...@@ -6,18 +6,19 @@ ...@@ -6,18 +6,19 @@
<ul> <ul>
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<li> <li>
{% if article.date >= article.date.now() %}
<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 }}
{% if article.author %} {% if article.author %}
-- {{ article.author }} <h3>{{ article.author }}</h3>
{% endif %} {% endif %}
</a></h2>
<p> <p>
{{ article.summary }} {{ article.summary }}
<a href="{{ SITEURL }}/{{ article.url }}"><em>Read more...</em></a> <a href="{{ SITEURL }}/{{ article.url }}"><em>Read more...</em></a>
</p> </p>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% if articles_page.has_other_pages() %} {% if articles_page.has_other_pages() %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment