|
|
@ -18,10 +18,10 @@ |
|
|
|
<div id="post-list"> |
|
|
|
|
|
|
|
{% for article in articles_page.object_list %} |
|
|
|
{% set thumb_size = '/thumb' %} |
|
|
|
{% if article.category %} |
|
|
|
{% if article.event_start %} |
|
|
|
{% set event_status = '' %} |
|
|
|
{% set thumb_size = '/thumb' %} |
|
|
|
{% if article.event_start < article.date.now() %} |
|
|
|
{% set event_status = ' past' %} |
|
|
|
{% endif %} |
|
|
@ -29,6 +29,9 @@ |
|
|
|
{% set event_status = ' current' %} |
|
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
|
{% endif %} |
|
|
|
{% if article.category == 'article' %} |
|
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<article class="hentry {{article.category}}{{event_status}}"> |
|
|
@ -40,6 +43,8 @@ |
|
|
|
{{ article.event_start | strftime('%d %B %Y') }} |
|
|
|
<!-- {% set event_status = '' %} --> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
<div class="event-details"></div> |
|
|
|
{% endif %} |
|
|
|
<div class="featured-image {{event_status}}"> |
|
|
|
{% if article.featured_image %} |
|
|
@ -66,18 +71,19 @@ |
|
|
|
<div class="separator"><hr></div> |
|
|
|
<div class="post-info"> |
|
|
|
{% if article.category %} |
|
|
|
<div class="categories"> |
|
|
|
<span itemprop="articleSection"> |
|
|
|
<a href="/{{ article.category.url }}" rel="category">{{ article.category }}</a> |
|
|
|
<span class="categories"> |
|
|
|
<span itemprop="articleSection"> |
|
|
|
<a href="/{{ article.category.url }}" rel="category">{{ article.category }}</a> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
{% endif %} |
|
|
|
{% if article.tags %} |
|
|
|
<span class="tags"> |
|
|
|
relating to {% for tag in article.tags %} |
|
|
|
<span itemprop="keywords"> |
|
|
|
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a> |
|
|
|
</span> {% endfor %} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
{% endif %} {% if article.tags %} |
|
|
|
<div class="tags"> |
|
|
|
Tags: {% for tag in article.tags %} |
|
|
|
<span itemprop="keywords"> |
|
|
|
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a> |
|
|
|
</span> {% endfor %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</article> |
|
|
|