diff options
Diffstat (limited to 'themes/default/layouts/partials/author-list.html')
-rw-r--r-- | themes/default/layouts/partials/author-list.html | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html index bfeaa16..619b1b3 100644 --- a/themes/default/layouts/partials/author-list.html +++ b/themes/default/layouts/partials/author-list.html @@ -1,14 +1,18 @@ -{{ $authors := slice }} -{{ range $index, $data := .Site.Data -}} - {{- $authors = $authors | append $data.user -}} -{{- end -}} +{{- $authors := print "public/authors.html" -}} <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> + <h1> + <a data-hover href="{{ "" | absURL }}/authors/"> + Authors + </a> + </h1> + <aside> + {{- with $authors = resources.Get $authors -}} + {{- $authors.Content | safeHTML -}} + {{- else -}} + <footer> + <code>No items found!</code> + </footer> + {{- end -}} + </aside> </author-list> |