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.
86 lines
2.3 KiB
86 lines
2.3 KiB
8 years ago
|
{% extends "base.html" %}
|
||
|
{% block content %}
|
||
7 years ago
|
<section id="content" class="index">
|
||
7 years ago
|
<header id="banner">
|
||
|
{% for p in pages %}
|
||
|
{% if p.title == 'header' %}
|
||
|
<div id="title">{{ p.content }}</div>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</header>
|
||
8 years ago
|
{% block content_title %}
|
||
|
{% endblock %}
|
||
|
{% if articles_page.has_other_pages() %}
|
||
7 years ago
|
{% include 'pagination.html' %}
|
||
8 years ago
|
{% endif %}
|
||
|
<div id="post-list">
|
||
|
{% for article in articles_page.object_list %}
|
||
7 years ago
|
{% if article.category %}
|
||
|
<article class="hentry {{article.category}}">
|
||
|
{% endif %}
|
||
7 years ago
|
<div class="article-info">
|
||
7 years ago
|
<div class="entry-title">
|
||
|
<a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
||
|
</div>
|
||
|
<div class="featured-image {{past}}">
|
||
|
{% if article.featured_image %}
|
||
|
<a href="{{ article.url }}"><img src="{{ article.featured_image }}"></a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% if article.event_start %}
|
||
|
<div class="event-details">
|
||
7 years ago
|
{{ article.event_start }}
|
||
7 years ago
|
{% set past = '' %}
|
||
|
{% if article.event_start < article.date.now() %}
|
||
|
{% set past = ' past-event' %}
|
||
|
{% endif %}
|
||
|
|
||
7 years ago
|
</div>
|
||
|
{% endif %}
|
||
7 years ago
|
</div>
|
||
7 years ago
|
<div class="summary {{ article.category }}">{{ article.summary }}
|
||
7 years ago
|
<span>
|
||
7 years ago
|
<a href="{{ article.url }}">
|
||
7 years ago
|
{% if DEFAULT_LANG == 'en' %}
|
||
|
read more
|
||
|
{% elif DEFAULT_LANG == 'nl' %}
|
||
|
lees meer
|
||
|
{% endif %}
|
||
|
</a>
|
||
|
</span>
|
||
|
</div>
|
||
7 years ago
|
<!-- <div class="summary {{ article.category }}">{{ article.summary }}
|
||
|
<span>
|
||
|
<a href="{{ article.url }}">
|
||
|
{% if DEFAULT_LANG == 'en' %}
|
||
|
read more
|
||
|
{% elif DEFAULT_LANG == 'nl' %}
|
||
|
lees meer
|
||
|
{% endif %}
|
||
|
</a>
|
||
|
</span>
|
||
|
</div> -->
|
||
8 years ago
|
<div class="separator"><hr></div>
|
||
7 years ago
|
<div class="post-info">
|
||
|
{% if article.category %}
|
||
|
<div class="categories">
|
||
|
<span itemprop="articleSection">
|
||
7 years ago
|
→ <a href="/{{ article.category.url }}" rel="category">{{ article.category }}</a>
|
||
7 years ago
|
</span>
|
||
|
</div>
|
||
|
{% endif %} {% if article.tags %}
|
||
|
<div class="tags">
|
||
|
Tags: {% for tag in article.tags %}
|
||
|
<span itemprop="keywords">
|
||
7 years ago
|
<a href="/{{ tag.url }}" rel="tag">{{ tag }}</a>
|
||
7 years ago
|
</span> {% endfor %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</div>
|
||
8 years ago
|
</article>
|
||
|
{% endfor %}
|
||
|
</div><!-- /#posts-list -->
|
||
|
|
||
|
</section><!-- /#content -->
|
||
|
{% endblock content %}
|