-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.twig
27 lines (25 loc) · 975 Bytes
/
archive.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% extends 'record.twig' %}
{% block othercontent %}
{% for ct in config.get('contenttypes') if ((not ct.viewless) and (not ct.hide_in_listings)) | default(false) %}
{% setcontent records = ct.slug %}
<div class="latest">
<h2>
{{ ct.name }}
</h2>
<ul class="latest-posts">
{% for record in records %}
<li>
<h3>
<a href="{{ record.link }}">
{{ record.title }}
<small>{{ record.datepublish|localedatetime("%d.%m.%Y") }}</small>
</a>
</h3>
</li>
{% else %}
<li>{{ __('contenttypes.generic.no-recent', {'%contenttype%': ct.slug}) }}</li>
{% endfor %}
</ul>
</div>
{% endfor %}
{% endblock othercontent %}