summaryrefslogtreecommitdiff
path: root/plt/art/page_list.html
blob: c634bcfe388dea5fe87bfb982dcb29d6930ab63e (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/page_list_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%}