{%macro print(pages, config)%} {%import "art/page_list_entry.html" as art_entry%}
{%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%}
{%endmacro%}