{{ define "main" }}
  <section class="page-hero page-hero-compact">
    <p class="eyebrow">{{ .Section }}</p>
    <h1>{{ .Title }}</h1>
    {{ with .Content }}
      <div class="lede">{{ . }}</div>
    {{ end }}
  </section>

  <section class="page-section">
    <div class="study-list">
      {{ range .Pages.ByWeight }}
        <article>
          <p class="study-card-meta">{{ .Section | title }}</p>
          <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
          <p>{{ .Summary }}</p>
        </article>
      {{ else }}
        <p>No entries yet.</p>
      {{ end }}
    </div>
  </section>
{{ end }}
