{{ define "main" }}
  {{ $enSite := index .Sites 0 }}
  {{ $posts := where $enSite.RegularPages "Section" .Section }}
  {{- partial "parent-link" . -}}
  <div class="container">
    <h1 class="page-title">{{ .Section }}</h1>
    {{ if gt (len .Pages) 0}}
      <p>This page is also available as an <a href="index.xml">RSS feed</a>.</p>
      <ul>
      {{ range $posts }}
        <li>
          <a href="{{.Permalink}}">{{ dateFormat "2006-01-02" .Date.Local }} - {{ .Title }}</a>
        </li>
      {{ end }}
    {{ else }}
    {{- partial "work-in-progress" . -}}
    {{ end }}
    </ul>
  </div>
{{ end }}
