{{ define "main" }}
<div class="container list-wrap">
  <div class="list-header">
    <h1 class="list-title">{{ .Title }}</h1>
    {{ with .Description }}<p class="list-description">{{ . }}</p>{{ end }}
  </div>
  {{ with .Content }}<div class="article-body">{{ . }}</div>{{ end }}
  {{ if .Pages -}}
  <ul class="post-list">
    {{ range .Pages.ByDate.Reverse -}}
    <li class="post-card">
      <h2 class="post-card-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
      {{ if not .Date.IsZero -}}
      <p class="post-card-meta">
        {{ i18n "postedOn" }} <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_long" }}</time>
      </p>
      {{- end }}
      {{ with .Summary }}<p class="post-card-summary">{{ . }}</p>{{ end }}
      <a class="read-more" href="{{ .RelPermalink }}">{{ i18n "readMore" }}</a>
    </li>
    {{- end }}
  </ul>
  {{- end }}
</div>
{{ end }}
