{{ define "main" -}}
<ul class="posts">
  <h1>{{ .Title }}</h1>
    <div class="homepage-content">
      <!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
      {{ .Content }}
    </div>

  {{ range .Data.Pages -}}
  <li>
    <div class="flex">
      <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
      {{ if eq .Kind "page" }}
      <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
      {{ end }}
    </div>
  </li>
  {{- end }}
</ul>
{{- end }}
