The Jinja2 template engine is used to render templates. If no template is specified the default.html template will be used. Custom templates must be located in the templates/ directory. You can use the template header in an article to specify a template file.
The following variables are available in the template context:
Beside the default Jinja2 filters, the following additional filters are available:
Beside specifying a filename as a template, you can also use self to use the article itself as the template:
template: self
status: hidden
{% extends "base.html" %}
{% block content %}
<div id="index_page">
<ul>
{% for article in articles %}
<li>
<span class="date">{{ article.headers.date|datetimeformat("%d. %b %Y") }}</span>
<a href="{{ article.headers.url }}">{{ article.headers.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}