|
@ -21,11 +21,13 @@ |
|
|
{% if article.category %} |
|
|
{% if article.category %} |
|
|
{% if article.event_start %} |
|
|
{% if article.event_start %} |
|
|
{% set event_status = '' %} |
|
|
{% set event_status = '' %} |
|
|
|
|
|
{% set thumb_size = '/thumb' %} |
|
|
{% if article.event_start < article.date.now() %} |
|
|
{% if article.event_start < article.date.now() %} |
|
|
{% set event_status = ' past' %} |
|
|
{% set event_status = ' past' %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% if article.event_start >= article.date.now() %} |
|
|
{% if article.event_start >= article.date.now() %} |
|
|
{% set event_status = ' current' %} |
|
|
{% set event_status = ' current' %} |
|
|
|
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
@ -36,17 +38,22 @@ |
|
|
{% if article.event_start %} |
|
|
{% if article.event_start %} |
|
|
<div class="event-details"> |
|
|
<div class="event-details"> |
|
|
{{ article.event_start | strftime('%d %B %Y') }} |
|
|
{{ article.event_start | strftime('%d %B %Y') }} |
|
|
{% set event_status = '' %} |
|
|
<!-- {% set event_status = '' %} --> |
|
|
</div> |
|
|
</div> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
<div class="featured-image {{event_status}}"> |
|
|
<div class="featured-image {{event_status}}"> |
|
|
{% if article.featured_image %} |
|
|
{% if article.featured_image %} |
|
|
<a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}"> |
|
|
<a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}"> |
|
|
<img src="{{ article.featured_image }}"> |
|
|
{% if article.featured_image.endswith('.gif') %} |
|
|
|
|
|
{% set thumb_size =''%} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
<img src="{{ article.featured_image | replace('images','images'+thumb_size) }}"> |
|
|
|
|
|
|
|
|
</a> |
|
|
</a> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="summary {{ article.category }}">{{ article.summary }} |
|
|
<div class="summary {{ article.category }}">{{ article.summary }} |
|
|
<span> |
|
|
<span> |
|
|
{% if DEFAULT_LANG == 'en' %} |
|
|
{% if DEFAULT_LANG == 'en' %} |
|
|