{{ define "main" }}

{{ partial "heading.html" . }}
{{ .Content }}
{{ range .Pages.GroupByPublishDate "2006" }}
<h3>{{ .Key }}</h3>
<ul>
  {{ range .Pages }}
  <li>
    {{ .PublishDate.Format "2006-01-02" }} – <a href="{{ .Permalink }}">{{ .Title }}</a>
  </li>
  {{ end }}
</ul>
{{ end }}

{{ end }}
