diff options
author | tdro <tdro@noreply.example.com> | 2022-08-03 02:25:22 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-03 02:25:22 -0400 |
commit | eec7f7ea5d99e84ef2a9cf4594b18d1046ae3038 (patch) | |
tree | c3c4d9af65d5ecb6e7f91a52b1dc79fe6ba605fc /themes/default/layouts/partials/function-authors-slice.html | |
parent | 93ff2963616968f377d63f02bb0fa206144da7ae (diff) | |
download | canory-eec7f7ea5d99e84ef2a9cf4594b18d1046ae3038.tar.gz canory-eec7f7ea5d99e84ef2a9cf4594b18d1046ae3038.tar.bz2 canory-eec7f7ea5d99e84ef2a9cf4594b18d1046ae3038.zip |
themes/default/layouts/partials/author-list: Dry up author's slice
Diffstat (limited to 'themes/default/layouts/partials/function-authors-slice.html')
-rw-r--r-- | themes/default/layouts/partials/function-authors-slice.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/function-authors-slice.html b/themes/default/layouts/partials/function-authors-slice.html new file mode 100644 index 0000000..a469fdd --- /dev/null +++ b/themes/default/layouts/partials/function-authors-slice.html @@ -0,0 +1,7 @@ +{{- $authors := slice -}} + +{{- range $index, $author := .Site.Data -}} + {{- $authors = $authors | append $author.user -}} +{{- end -}} + +{{- return (uniq $authors) -}} |