aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-authors-slice.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/function-authors-slice.html')
-rw-r--r--themes/default/layouts/partials/function-authors-slice.html9
1 files changed, 9 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..fc25554
--- /dev/null
+++ b/themes/default/layouts/partials/function-authors-slice.html
@@ -0,0 +1,9 @@
+{{- $authors := slice -}}
+
+{{- range $user := .Site.Author.list -}}
+ {{- with $author := index $.Site.Data.authors $user -}}
+ {{- $authors = $authors | append $author.user -}}
+ {{- end -}}
+{{- end -}}
+
+{{- return (uniq $authors) -}}