francescomecca.eu/themes/cayman/templates/customarchive.tmpl

24 lines
673 B
Cheetah
Raw Normal View History

2018-11-10 18:19:00 +01:00
## -*- coding: utf-8 -*-
<%inherit file="base.tmpl"/>
<%block name="content">
<article class="listpage">
<header>
<h1>Archive</h1>
</header>
<ul class="postlist">
% for year in sorted(tuple(archive.keys()), reverse=True):
<li style="list-style-type:none">${year|h} (${len(archive[year])}):
</li><hr>
<ul>
% for post in sorted(archive[year],key=lambda x: x.date, reverse=True):
<li style="list-style-type:disc"><p>${post.date.strftime("%d %B %Y")} » <a href="${post.permalink()}">${post.title()|h}</a></p></li>
% endfor
</ul>
% endfor
</ul>
</article>
</%block>