summaryrefslogtreecommitdiff
path: root/plt/art/page_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'plt/art/page_list.html')
-rw-r--r--plt/art/page_list.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/plt/art/page_list.html b/plt/art/page_list.html
new file mode 100644
index 0000000..c634bcf
--- /dev/null
+++ b/plt/art/page_list.html
@@ -0,0 +1,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%}