{{ define "main" }}
  <h1>{{ title .Title }} {{ .Data.Singular }}</h1>

  {{ if .Data.Plural }}
  <a href="/{{ .Data.Plural | urlize }}">&#8598; See all {{ .Data.Plural }}</a>
  {{ end }}

  {{ $paginator := .Paginate .Data.Pages }}
  <ul>
  {{ range $paginator.Pages }}
    {{ .Render "summary" }}
  {{ end }}
  </ul>

  <footer>
    {{ partial "pagination.html" . }}
  </footer>

{{ end }}

{{ define "main" }}
  <h1>{{ title .Title }} {{ .Data.Singular }}</h1>

  {{ with .Data.Plural }}
  <a href="/{{ .|urlize }}">&#8598; See all {{ . }}</a>
  {{ end }}

  {{ $sectionName := .Title }}
  {{ with .OutputFormats.Get "csv" }}
  <a href="{{ .Permalink }}" download>Download {{ $sectionName|lower|pluralize }} as CSV</a>
  {{ end }}

  {{ $paginator := .Paginate .Data.Pages }}
  <ul>
  {{ range $paginator.Pages }}
    {{ .Render "summary" }}
  {{ end }}
  </ul>

  <footer>
    {{ partial "pagination.html" . }}
  </footer>

{{ end }}

Add download link to csvs on sections
Add download link to csvs on sections

Add the link if the template exists for that content.
