{{ define "main" }}
  <section class="mb-8">
    <div class="container flex flex-col gap-5">
      {{ $sections := slice . }}
      {{ if .Sections }}
        {{ $sections = .Sections.ByDate.Reverse }}
      {{ end }}
      {{ range $sections }}
        <div>
          <div>
            <h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
          </div>
          <div class="flex flex-col">
            {{ range .RegularPages.ByDate }}
              <a href="{{ .RelPermalink }}">{{ .Title }}</a>
            {{ end }}
          </div>
        </div>
      {{ end }}
    </div>
  </section>
{{ end }}
