my eye

year.html

$def with (year, posts)
$var title: $year

<ul>
$for post in sorted(posts, key=operator.itemgetter("url")):
    <li><a href=$post["url"][0]>$post["url"][0]</a>
    $if name := post.get("name"):
        $name[0]
    </li>
</ul>