{{ define "body" }}
<ul class="post-list">
  {{ range . }}
    <li>
      <a class="card" href="/post/{{ .Slug }}">
        {{ if .Cover }}
          <img src="{{ .Cover }}" alt="">
        {{ else }}
          <img src="/static/img/placeholder.png" alt="">
        {{ end }}
        <div class="card-content">
          <h2>{{ .Title }}</h2>
          <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>
        </div>
      </a>
    </li>
  {{ end }}
</ul>
{{ end }}
