{{ define "main" }}
<h1>{{ .Title }}</h1>

{{ $years := .Pages.GroupByDate "2006" }}
<ul class="year-list">
  {{ range $years }}
    <li>
      <span class="year">{{ .Key }}</span>
      <ul class="post-list">
        {{ range .Pages }}
          <li>
            <time>{{ .Date.Format "Jan 2" }}</time>
            <a href="{{ .RelPermalink }}">{{ .Title }}</a>
          </li>
        {{ end }}
      </ul>
    </li>
  {{ end }}
</ul>
{{ end }}
