diff options
Diffstat (limited to 'themes/default/layouts/partials/author-list.html')
-rw-r--r-- | themes/default/layouts/partials/author-list.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html new file mode 100644 index 0000000..759fa44 --- /dev/null +++ b/themes/default/layouts/partials/author-list.html @@ -0,0 +1,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> |