|
|
@ -16,25 +16,30 @@ |
|
|
|
<div id="post-list"> |
|
|
|
{% for article in articles_page.object_list %} |
|
|
|
{% if article.category %} |
|
|
|
<article class="hentry {{article.category}}"> |
|
|
|
{% if article.event_start %} |
|
|
|
{% set event_status = '' %} |
|
|
|
{% if article.event_start < article.date.now() %} |
|
|
|
{% set event_status = ' past' %} |
|
|
|
{% endif %} |
|
|
|
{% if article.event_start >= article.date.now() %} |
|
|
|
{% set event_status = ' current' %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<article class="hentry {{article.category}}{{event_status}}"> |
|
|
|
{% endif %} |
|
|
|
<div class="article-info"> |
|
|
|
<span class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span> |
|
|
|
<div class="event-details"> |
|
|
|
{% if article.event_start %} |
|
|
|
{{ article.event_start }} |
|
|
|
{% set past = '' %} |
|
|
|
{% if article.event_start < article.date.now() %} |
|
|
|
{% set past = ' past-event' %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
<div class="featured-image {{past}}"> |
|
|
|
<div class="featured-image {{event_status}}"> |
|
|
|
{% if article.featured_image %} |
|
|
|
<img src="{{ article.featured_image }}"> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
{% if article.event_start %} |
|
|
|
<div class="event-details"> |
|
|
|
{{ article.event_start }} |
|
|
|
{% set past = '' %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
<div class="summary">{{ article.summary }} |
|
|
|
<span> |
|
|
|