|
@ -18,10 +18,10 @@ |
|
|
<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' %} |
|
|
{% 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 %} |
|
@ -29,6 +29,9 @@ |
|
|
{% set event_status = ' current' %} |
|
|
{% set event_status = ' current' %} |
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% if article.category == 'article' %} |
|
|
|
|
|
{% set thumb_size = '/thumb2x' %} |
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
<article class="hentry {{article.category}}{{event_status}}"> |
|
|
<article class="hentry {{article.category}}{{event_status}}"> |
|
@ -40,6 +43,8 @@ |
|
|
{{ article.event_start | strftime('%d %B %Y') }} |
|
|
{{ article.event_start | strftime('%d %B %Y') }} |
|
|
<!-- {% set event_status = '' %} --> |
|
|
<!-- {% set event_status = '' %} --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<div class="event-details"></div> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
<div class="featured-image {{event_status}}"> |
|
|
<div class="featured-image {{event_status}}"> |
|
|
{% if article.featured_image %} |
|
|
{% if article.featured_image %} |
|
@ -66,18 +71,19 @@ |
|
|
<div class="separator"><hr></div> |
|
|
<div class="separator"><hr></div> |
|
|
<div class="post-info"> |
|
|
<div class="post-info"> |
|
|
{% if article.category %} |
|
|
{% if article.category %} |
|
|
<div class="categories"> |
|
|
<span class="categories"> |
|
|
<span itemprop="articleSection"> |
|
|
<span itemprop="articleSection"> |
|
|
<a href="/{{ article.category.url }}" rel="category">{{ article.category }}</a> |
|
|
<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> |
|
|
</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 %} |
|
|
{% endif %} |
|
|
</div> |
|
|
</div> |
|
|
</article> |
|
|
</article> |
|
|