forked from varia/varia.website
tags added
This commit is contained in:
parent
f95512882c
commit
4787959683
@ -18,16 +18,19 @@
|
|||||||
<div id="post-list">
|
<div id="post-list">
|
||||||
|
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles_page.object_list %}
|
||||||
{% if article.category %}
|
{% set thumb_size = '/thumb' %}
|
||||||
|
{% 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 %}
|
||||||
{% if article.event_start >= article.date.now() %}
|
{% if article.event_start >= article.date.now() %}
|
||||||
{% set event_status = ' current' %}
|
{% set event_status = ' current' %}
|
||||||
{% set thumb_size = '/thumb2x' %}
|
{% set thumb_size = '/thumb2x' %}
|
||||||
|
{% endif %}
|
||||||
|
{% if article.category == 'article' %}
|
||||||
|
{% set thumb_size = '/thumb2x' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -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>
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
{% extends "index.html" %}
|
||||||
|
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
|
Loading…
Reference in New Issue
Block a user