1 [% posts = c.model('Post').archive(year,month,day) %]
3 [% UNLESS posts.size; year = ''; month = ''; day = ''; END %]
5 [% helper_util = c.helper('Util') %]
7 [% WRAPPER 'include/corners' %]
8 <h2 class="title"><a href="[% uri_post_list() %]">[% c.loc('Blog')
11 <a href="[% uri_post_archive() %]">[% c.loc('Archive') %]</a> ←
13 <a href="[% uri_post_archive(year) %]">[% year %]</a> ←
15 <a href="[% uri_post_archive(year, month) %]">[%
16 helper_util.mon2name(month - 1) %]</a> ←
19 [% helper_util.mon2name(month - 1) %]
25 [% c.loc('Archive') %]
29 [% FOREACH entry IN c.model('Post').archive_month_list %]
30 [% IF loop.first %]<ul>[% END %]
31 <li><a href="[% uri_post_archive(entry.year) %]">[% entry.year
32 %]</a>, <a href="[% uri_post_archive(entry.year, entry.month)
33 %]">[% entry.month_name %]</a> ([% entry.count %])</li>
34 [% IF loop.last %]</ul>[% END %]
39 [% PROCESS 'post/list.tt2' %]