summaryrefslogtreecommitdiff
path: root/src/pyssg/plt/page_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyssg/plt/page_list.html')
-rw-r--r--src/pyssg/plt/page_list.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pyssg/plt/page_list.html b/src/pyssg/plt/page_list.html
new file mode 100644
index 0000000..93faf43
--- /dev/null
+++ b/src/pyssg/plt/page_list.html
@@ -0,0 +1,15 @@
+{%macro print(name, pages)%}
+ <h2>{{name}}</h2>
+ <ul>
+ {%for p in pages%}
+ {%if loop.previtem%}
+ {%if loop.previtem.date(loop.previtem.cts, 'list_sep_date') != p.date(p.cts, 'list_sep_date')%}
+ <h3>{{p.date(p.cts, 'list_sep_date')}}</h3>
+ {%endif%}
+ {%else%}
+ <h3>{{p.date(p.cts, 'list_sep_date')}}</h3>
+ {%endif%}
+ <li>{{p.date(p.cts, 'list_date')}} - <a href="/{{p.name}}">{{p.title}}</a></li>
+ {%endfor%}
+ </ul>
+{%endmacro%}