$def with (links, span, base, offset, limit, total) $ last_date = None $for link in links: $ date = link.to_datestr() $if date != last_date:

$date

$ last_date = date
$if not link.URL: $link.title $else: $:link.URL_description $:link.description $if link.extended: more inside
posted by $link.user.username $link.ago() ago - $len(link.comments) comments
$if total > limit: Page $ at = 1 + offset // limit $for i in range(0, total, limit): $if loop.index == at: $loop.index $if loop.index == at: