aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-list.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-06 18:32:11 -0400
committertdro <tdro@noreply.example.com>2022-06-06 18:32:11 -0400
commitf45eba6394e019b60f839a3aa02b256425577bed (patch)
tree3d765c408d04f902857987cfe419e434faa3bff5 /themes/default/layouts/partials/author-list.html
parentaa865a9aa0f94e9e550bc761f18268e206bd1c48 (diff)
downloadcanory-f45eba6394e019b60f839a3aa02b256425577bed.tar.gz
canory-f45eba6394e019b60f839a3aa02b256425577bed.tar.bz2
canory-f45eba6394e019b60f839a3aa02b256425577bed.zip
themes/default/layouts/partials/author-list: Limit to three maximum and shuffle
Diffstat (limited to 'themes/default/layouts/partials/author-list.html')
-rw-r--r--themes/default/layouts/partials/author-list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html
index c969be6..5435592 100644
--- a/themes/default/layouts/partials/author-list.html
+++ b/themes/default/layouts/partials/author-list.html
@@ -5,11 +5,11 @@
{{ $authors = $authors | append $data.Type }}
{{- end -}}
- {{ $authors = uniq $authors }}
+ {{ $authors = shuffle (uniq $authors) }}
<h1>Authors</h1>
<section>
- {{ range $author := first 5 $authors }}
+ {{ range $author := first 3 $authors }}
{{ $data := index $.Site.Data.authors $author | default "default" }}
{{ partial "author-card.html" (dict "Data" $data) }}
{{ end }}