|
|
@ -16,25 +16,30 @@ |
|
|
|
<div id="post-list"> |
|
|
|
{% for article in articles_page.object_list %} |
|
|
|
{% if article.category %} |
|
|
|
<article class="hentry {{article.category}}"> |
|
|
|
{% 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 = '' %} |
|
|
|
{% set event_status = '' %} |
|
|
|
{% if article.event_start < article.date.now() %} |
|
|
|
{% set past = ' past-event' %} |
|
|
|
{% set event_status = ' past' %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if article.event_start >= article.date.now() %} |
|
|
|
{% set event_status = ' current' %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
<div class="featured-image {{past}}"> |
|
|
|
{% 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="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> |
|
|
|