aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-list.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/author-list.html')
-rw-r--r--themes/default/layouts/partials/author-list.html18
1 files changed, 8 insertions, 10 deletions
diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html
index bd87ad5..44b55aa 100644
--- a/themes/default/layouts/partials/author-list.html
+++ b/themes/default/layouts/partials/author-list.html
@@ -1,16 +1,14 @@
-{{- $authors := partial "function-authors-slice.html" . -}}
+{{- $authors := print "public/authors.html" -}}
<author-list>
<h1>Authors</h1>
<aside>
- {{- range $author := first 3 (shuffle $authors) -}}
- {{- $data := index $.Site.Data $author | default "default" -}}
- {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}}
- {{- partial "author-card.html" (dict
- "Data" $data
- "Date" $date
- )
- -}}
- {{- end -}}
+ {{- with $authors = resources.Get $authors -}}
+ {{- $authors.Content | safeHTML -}}
+ {{- else -}}
+ <footer>
+ <code>No authors found!</code>
+ </footer>
+ {{- end -}}
</aside>
</author-list>