forked from varia/varia.website
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
3.1 KiB
96 lines
3.1 KiB
{% extends "base.html" %}
|
|
{% block content %}
|
|
<section id="content" class="index">
|
|
<header id="banner">
|
|
{% for p in pages %}
|
|
{% if p.title == 'header' %}
|
|
<div id="title">
|
|
<!-- <div id="stream">
|
|
{% for img in p.stream %}
|
|
<a href="pages/stream.html"><div class="container" style="background-image: url(/stream/{{ img }})"></div></a>
|
|
{% endfor %}
|
|
</div> -->
|
|
{{ p.content }}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</header>
|
|
{% block content_title %}
|
|
{% endblock %}
|
|
{% if articles_page.has_other_pages() %}
|
|
{% include 'pagination.html' %}
|
|
{% endif %}
|
|
<div id="post-list">
|
|
|
|
{% for article in articles_page.object_list %}
|
|
{% if article.category %}
|
|
{% if article.event_start %}
|
|
{% set event_status = '' %}
|
|
{% if article.event_start < article.date.now() %}
|
|
{% set event_status = ' past' %}
|
|
{% endif %}
|
|
{% if article.event_start >= article.date.now() %}
|
|
{% set event_status = ' current' %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<!-- STREAM -->
|
|
<!-- {% if loop.index % 3 == 0 -%}
|
|
<article class="hentry {{article.category}}{{event_status}}">
|
|
<div id="stream">
|
|
{% set count = loop.index / 3 %}
|
|
<a href="pages/stream.html"><div class="container" style="background-image: url(/stream/{{ pages[0].fullstream[ count | int ] }})"></div></a>
|
|
</div>
|
|
</article>
|
|
{% endif -%} -->
|
|
|
|
<article class="hentry {{article.category}}{{event_status}}">
|
|
{% endif %}
|
|
<div class="article-info">
|
|
<span class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
|
|
{% if article.event_start %}
|
|
<div class="event-details">
|
|
{{ article.event_start | strftime('%d %B %Y') }}
|
|
{% set event-status = '' %}
|
|
</div>
|
|
{% endif %}
|
|
<div class="featured-image {{event_status}}">
|
|
{% if article.featured_image %}
|
|
<a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
|
<img src="{{ article.featured_image }}">
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="summary {{ article.category }}">{{ article.summary }}
|
|
<span>
|
|
{% if DEFAULT_LANG == 'en' %}
|
|
<a href="/en/{{ article.url }}">read more</a>
|
|
{% elif DEFAULT_LANG == 'nl' %}
|
|
<a href="/{{ article.url }}">lees meer</a>
|
|
{% endif %}
|
|
</span>
|
|
</div>
|
|
<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>
|
|
</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>
|
|
{% endfor %}
|
|
</div><!-- /#posts-list -->
|
|
|
|
</section><!-- /#content -->
|
|
{% endblock content %}
|
|
|