summaryrefslogtreecommitdiff
path: root/plt/blog/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/blog/page_list.html
parent3112a76dac594fe715b59e53c399b0dec5b53193 (diff)
change structure for new pyssg version
Diffstat (limited to 'plt/blog/page_list.html')
-rw-r--r--plt/blog/page_list.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/plt/blog/page_list.html b/plt/blog/page_list.html
new file mode 100644
index 0000000..b818884
--- /dev/null
+++ b/plt/blog/page_list.html
@@ -0,0 +1,15 @@
+{%macro print(name, pages)%}
+ <h2>{{name}}</h2>
+ <ul class="page-list">
+ {%for p in pages%}
+ {%if loop.previtem%}
+ {%if loop.previtem.cdate_list_sep != p.cdate_list_sep%}
+ <h3>{{p.cdate_list_sep}}</h3>
+ {%endif%}
+ {%else%}
+ <h3>{{p.cdate_list_sep}}</h3>
+ {%endif%}
+ <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
+ {%endfor%}
+ </ul>
+{%endmacro%}