{% set name = '' %}
{% set link = '' %}

{% extends "base.html" %}

{% block content %}
{% from 'macro.html' import genurl with context %}

{% if articles %}
	{% if articles_page %}
		{% set articles = articles_page.object_list %}
	{% endif %}

	<div class="panel-group">
		{% for article in articles %}
			{% set year = article.date|strftime('%Y') %}
			{% set month = article.date|strftime('%B') %}
			{% set month_index = article.date|strftime('%m') %}
			{% set article_url = genurl( article.url, force=True ) %}
			
			<div class="panel">
				<a href="{{ article_url }}"><h1 class="title">
					{{- article.title -}}
				</h1></a>
				<div>
					{% from 'macro.html' import article_info with context %}
					{{ article_info(article) }}
					{% if article.summary %}
						{{- article.summary -}}
					{% endif %}
				</div>
				<div class="btn-group">
					<a href="{{ article_url }}" title="permalink / read more">mehr...</a>
				</div>
			</div>
		{% endfor %}
	</div>
{% endif %}

{% endblock content %}

{% block pagefooter %}
	{% from 'macro.html' import pagination with context %}
	{{ pagination() }}
{% endblock %}
