summaryrefslogtreecommitdiff
path: root/plt/art/page_list.html
blob: 2a51d25cb201de291e9bb4e663fb7ef4e6ce6798 (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, config)%}
{%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, config, 'tall wide')}}
      {%else%}
        {{art_entry.print(p, config, 'tall')}}
      {%endif%}
    {%elif p.meta['wide'] is defined%}
      {%if p.meta['tall'] is defined%}
        {{art_entry.print(p, config, 'tall wide')}}
      {%else%}
        {{art_entry.print(p, config, 'tall')}}
      {%endif%}
    {%else%}
      {{art_entry.print(p, config)}}
    {%endif%}
  {%endfor%}
</div>
{%endmacro%}