diff options
author | tdro <tdro@noreply.example.com> | 2022-06-06 18:32:11 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-06 18:32:11 -0400 |
commit | f45eba6394e019b60f839a3aa02b256425577bed (patch) | |
tree | 3d765c408d04f902857987cfe419e434faa3bff5 /themes/default/layouts/partials/author-list.html | |
parent | aa865a9aa0f94e9e550bc761f18268e206bd1c48 (diff) | |
download | canory-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.html | 4 |
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 }} |