{{ define "main" -}}
<div class="container">
  <section class="page-header">
    <h1 class="page-header-title">{{ .Title }}</h1>
    <p class="page-header-desc">
      {{- with .Params.Summary -}}
        {{- . -}}
      {{- else -}}
        {{- with .Description -}}
          {{- . -}}
        {{- else -}}
          {{- if eq .Data.Plural "series" -}}
            Posts in the {{ .Title }} series.
          {{- else -}}
            Posts about {{ .Title }}.
          {{- end -}}
        {{- end -}}
      {{- end -}}
    </p>
  </section>
  <section>
    {{ range (.Paginate .RegularPagesRecursive).Pages }}
      {{ partial "posts/post-entry.html" . }}
      <div class="post-entry-divider"></div>
    {{ else }}
      {{ partial "general/fallback-text.html" . }}
    {{ end }}
    {{ template "_internal/pagination.html" . }}
  </section>
</div>
{{ end }}