summaryrefslogtreecommitdiff
path: root/plt/art/page_list.html
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-12-16 17:45:03 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-12-16 17:45:03 -0600
commit7e49db5ddefe8c515b5f3931a5c701efaac33d91 (patch)
treed7d1efda44837a466fe079266efda90021812399 /plt/art/page_list.html
parent3112a76dac594fe715b59e53c399b0dec5b53193 (diff)
change structure for new pyssg version
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%}