From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 16 Dec 2022 17:45:03 -0600 Subject: change structure for new pyssg version --- plt/art/page_list.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plt/art/page_list.html (limited to 'plt/art/page_list.html') 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%} +
+ {%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%} +
+{%endmacro%} -- cgit v1.2.3-70-g09d2