blob: 8cdebd845c77141ecc83fab1811edf9abb56c02c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{%macro print(pages)%}
{%import "art_entry.html" as art_entry%}
<div class="art-grid">
{%for p in pages%}
{%if p.meta['tall'] is defined%}
{%if p.meta['wide'] is defined%}
{{art_entry.print(p, 'tall wide')}}
{%else%}
{{art_entry.print(p, 'tall')}}
{%endif%}
{%elif p.meta['wide'] is defined%}
{%if p.meta['tall'] is defined%}
{{art_entry.print(p, 'tall wide')}}
{%else%}
{{art_entry.print(p, 'tall')}}
{%endif%}
{%else%}
{{art_entry.print(p)}}
{%endif%}
{%endfor%}
</div>
{%endmacro%}
|