aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-list.html
blob: 759fa44ae7d09117345c894b088746ca8ce3db57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<author-list>
  {{ $authors := slice }}

  {{- range $index, $data := where .Site.RegularPages ".Params.hidden" "!=" "true" -}}
    {{ $authors = $authors | append $data.Type }}
  {{- end -}}

  {{ $authors = uniq $authors }}

  <h1>Authors</h1>
  <section>
    {{ range $author := first 5 $authors }}
    {{ $data := index $.Site.Data.authors $author | default "default" }}
      {{ partial "author-card.html" (dict "Data" $data) }}
    {{ end }}
  </section>
</author-list>