blob: bfeaa16a3d1efd137e87215053a1ae005cff9358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{ $authors := slice }}
{{ range $index, $data := .Site.Data -}}
{{- $authors = $authors | append $data.user -}}
{{- end -}}
<author-list>
<h1>Authors</h1>
<section>
{{- range $author := first 3 (shuffle (uniq $authors)) -}}
{{ $data := index $.Site.Data $author | default "default" }}
{{ partial "author-card.html" (dict "Data" $data) }}
{{ end }}
</section>
</author-list>
|