|
|
@ -26,32 +26,33 @@ |
|
|
|
<div id="post-list"> |
|
|
|
{% for article in articles_page.object_list %} |
|
|
|
{% set thumb_size = '/thumb' %} |
|
|
|
{% if article.category %} |
|
|
|
{% if article.category %} |
|
|
|
|
|
|
|
{% if article.event_start %} |
|
|
|
{% set event_status = '' %} |
|
|
|
{% if article.event_start < article.date.now() %} |
|
|
|
{% set now = article.date.now() | string %} |
|
|
|
{% if article.event_start < now %} |
|
|
|
{% set event_status = ' past' %} |
|
|
|
{% endif %} |
|
|
|
{% if article.event_start >= article.date.now() %} |
|
|
|
{% if article.event_start >= now %} |
|
|
|
{% set event_status = ' current' %} |
|
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% if article.category == 'article' %} |
|
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
<article class="hentry {{article.category}}{{event_status}}"> |
|
|
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<div class="article-info"> |
|
|
|
<span class="entry-title"><a href="/{% if article.lang == 'en' %}en/{% endif %}{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span> |
|
|
|
{% if article.event_start %} |
|
|
|
<div class="event-details"> |
|
|
|
{{ article.event_start | strftime('%d %B %Y') }} |
|
|
|
<!-- article.event_start | strftime('%d %B %Y') --> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
<div class="event-details"></div> |
|
|
@ -68,7 +69,7 @@ |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="summary {{ article.category }}">{{ article.summary }} |
|
|
|
<span class="read_more"> |
|
|
|
{% if DEFAULT_LANG == 'en' %} |
|
|
@ -90,7 +91,7 @@ |
|
|
|
{% endif %} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if article.tags %} |
|
|
|
<span class="tags"> |
|
|
|
{{ glob.related_to }} |
|
|
@ -104,7 +105,7 @@ |
|
|
|
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a> |
|
|
|
</span> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
</span> |
|
|
|
{% endif %} |
|
|
|