diff options
author | tdro <tdro@noreply.example.com> | 2023-01-06 03:57:02 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-01-06 04:16:39 -0500 |
commit | 036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76 (patch) | |
tree | 7550133ef57e7ff86a5db9a0195266cc92dcce56 /themes/default/layouts/partials/author-list.html | |
parent | 6f40c9a8d7263f82eb97009897502588f7236ce2 (diff) | |
download | canory-036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76.tar.gz canory-036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76.tar.bz2 canory-036d5bd8bd2bfc2a77c43f8dbfa8e90ae8ee8b76.zip |
themes/default/layouts/partials/author-list: Generate once0.11.10
Let it appear on second generation
Diffstat (limited to 'themes/default/layouts/partials/author-list.html')
-rw-r--r-- | themes/default/layouts/partials/author-list.html | 18 |
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> |