aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-authors-slice.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-03 02:25:22 -0400
committertdro <tdro@noreply.example.com>2022-08-03 02:25:22 -0400
commiteec7f7ea5d99e84ef2a9cf4594b18d1046ae3038 (patch)
treec3c4d9af65d5ecb6e7f91a52b1dc79fe6ba605fc /themes/default/layouts/partials/function-authors-slice.html
parent93ff2963616968f377d63f02bb0fa206144da7ae (diff)
downloadcanory-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.html7
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) -}}