{{ define "main" }}
  {{- partial "parent-link" . -}}
  <div class="container">
    <h1 class="page-title">{{ .Section }}</h1>
    {{ if gt (len .Pages) 0 }}
      <ul>
      {{ range .Pages | }}
        <li>
          <a href="{{.Permalink}}">{{ dateFormat "2006-01-02" .Date.Local }} - {{ .Title }}</a>
        </li>
      {{ end }}
      </ul>
    {{ else }}
    {{- partial "work-in-progress" . -}}
    {{ end }}
  </div>
{{ end }}
