tags added

This commit is contained in:
mb@mb 2018-03-20 22:45:21 +01:00
parent f95512882c
commit 4787959683
2 changed files with 21 additions and 13 deletions

View File

@ -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 class="categories">
<span itemprop="articleSection">
<a href="/{{ article.category.url }}" rel="category">{{ article.category }}</a>
</span>
</div>
{% endif %} {% if article.tags %}
<div class="tags">
Tags: {% for tag in article.tags %}
</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 %}
</div>
</span>
{% endif %}
</div>
</article>

View File

@ -0,0 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}