archive_page.tmpl 469 Bytes
Newer Older
abyxcos's avatar
abyxcos committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[% INCLUDE site_header.tmpl title=title %]

<h1>${title}:</h1>
<ul class="posts">
[% FOREACH post=posts %]
	[% # Print a YYYY-MM heading at a month granularity %]
	[% SET post.short_date = post.date.remove('-..$') %]
	[% IF post.short_date != date %]
		[% SET date = post.short_date %]
		<h3>${date}</h3>
	[% END %]
	<li><span>${post.date}</span> &raquo; <a href="${site.prefix}/${post.path}.html">${post.title}</a></li>
[% END %]
</ul>

[% INCLUDE site_footer.tmpl %]