diff options
Diffstat (limited to 'themes/default/layouts/partials/function-authors-slice.html')
-rw-r--r-- | themes/default/layouts/partials/function-authors-slice.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/function-authors-slice.html b/themes/default/layouts/partials/function-authors-slice.html index a469fdd..fc25554 100644 --- a/themes/default/layouts/partials/function-authors-slice.html +++ b/themes/default/layouts/partials/function-authors-slice.html @@ -1,7 +1,9 @@ {{- $authors := slice -}} -{{- range $index, $author := .Site.Data -}} - {{- $authors = $authors | append $author.user -}} +{{- range $user := .Site.Author.list -}} + {{- with $author := index $.Site.Data.authors $user -}} + {{- $authors = $authors | append $author.user -}} + {{- end -}} {{- end -}} {{- return (uniq $authors) -}} |