diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-06-05 01:21:59 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-06-05 01:21:59 -0600 |
commit | 0e91926ff40b3df1914375165633bb703c176558 (patch) | |
tree | e324842456b2651f5bf384f9c91222de975c3f03 /blog/plt/page_list.html | |
parent | b171347f739b2ada7960ad50bcba47e898d890d2 (diff) |
simplify templates
Diffstat (limited to 'blog/plt/page_list.html')
-rw-r--r-- | blog/plt/page_list.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/blog/plt/page_list.html b/blog/plt/page_list.html new file mode 100644 index 0000000..16dc4d5 --- /dev/null +++ b/blog/plt/page_list.html @@ -0,0 +1,15 @@ +{%macro print(pages)%} + <h2>Articles</h2> + <ul> + {%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%} |