{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ $pages := .Pages.ByDate }}
{{ $startYear := (index (last 1 .Pages) 0).Date.Format "2006" }}
{{ $endYear := (index (first 1 .Pages) 0).Date.Format "2006" }}
<div class="post-subscript">
    <p>{{ partial "seriesstatus.html" .Params.status }}</p>
    <p>{{ i18n "postsFromTo" (dict "from" $startYear "to" $endYear) }}</p>
</div>
<p>{{ partial "summary" . }}</p>

<ul class="post-list">
    {{ range $pages }}
    {{ partial "post.html" (dict "page" . "seriesName" true) }}
    {{ end }}
</ul>
{{ end }}
