{{ define "main" }}
  {{ with .Content }}
    <div id="content" class="page">
        {{ . }}
    </div>
  {{ end }}
  <div id="posts" class="directory">
    {{ range .Paginator.Pages }}
    <a href="{{ .RelPermalink }}">
      <article class="post">
        <h2>{{ .LinkTitle }}</h2>
        <p>{{ .Summary }}</p>
      </article>
    </a>
    {{ end }}{{ template "_internal/pagination.html" . }}
  </div>
{{ end }}
