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