blob: 93faf43344b93c5a5ce57312b0d2b779df18a974 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{%macro print(name, pages)%}
<h2>{{name}}</h2>
<ul>
{%for p in pages%}
{%if loop.previtem%}
{%if loop.previtem.date(loop.previtem.cts, 'list_sep_date') != p.date(p.cts, 'list_sep_date')%}
<h3>{{p.date(p.cts, 'list_sep_date')}}</h3>
{%endif%}
{%else%}
<h3>{{p.date(p.cts, 'list_sep_date')}}</h3>
{%endif%}
<li>{{p.date(p.cts, 'list_date')}} - <a href="/{{p.name}}">{{p.title}}</a></li>
{%endfor%}
</ul>
{%endmacro%}
|