{{ define "main" }}
  
  {{ .Content }}
  
  <div class="post-list">
    {{ range (where .Site.RegularPages "Section" "posts") }}
      <article class="post-preview">
        <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
        <div class="post-meta">
          <span>{{ partial "date" .Date }}</span>
        </div>
        <div class="post-summary">
          {{ .Summary | plainify }}
        </div>
        <div class="read-more">
          <a href="{{ .RelPermalink }}">Read more →</a>
        </div>
      </article>
    {{ end }}
  </div>
{{ end }}
