diff options
Diffstat (limited to 'themes')
4 files changed, 11 insertions, 5 deletions
diff --git a/themes/default/layouts/_default/home.authors.html b/themes/default/layouts/_default/home.authors.html index c4051bb..e0dcdb1 100644 --- a/themes/default/layouts/_default/home.authors.html +++ b/themes/default/layouts/_default/home.authors.html @@ -24,7 +24,7 @@ {{ $authors := partial "function-authors-slice.html" . }} - {{- range $author := shuffle $authors -}} + {{- range $author := $authors -}} {{ $data := index $.Site.Data $author | default "default" }} {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} {{- partial "author-card.html" (dict diff --git a/themes/default/layouts/_default/home.authors.section.html b/themes/default/layouts/_default/home.authors.section.html index 8b868f9..e665b66 100644 --- a/themes/default/layouts/_default/home.authors.section.html +++ b/themes/default/layouts/_default/home.authors.section.html @@ -1,6 +1,6 @@ {{- $authors := partial "function-authors-slice.html" . -}} -{{- range $author := first 3 (shuffle $authors) -}} +{{- range $author := first 3 $authors -}} {{- $data := index $.Site.Data $author | default "default" -}} {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} {{- partial "author-card.html" (dict diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html index 44b55aa..1e26c33 100644 --- a/themes/default/layouts/partials/author-list.html +++ b/themes/default/layouts/partials/author-list.html @@ -1,7 +1,11 @@ {{- $authors := print "public/authors.html" -}} <author-list> - <h1>Authors</h1> + <h1> + <a data-hover href="{{ "" | absURL }}/authors/"> + Authors + </a> + </h1> <aside> {{- with $authors = resources.Get $authors -}} {{- $authors.Content | safeHTML -}} diff --git a/themes/default/layouts/partials/function-authors-slice.html b/themes/default/layouts/partials/function-authors-slice.html index a469fdd..3f622b9 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 $user -}} + {{- $authors = $authors | append $author.user -}} + {{- end -}} {{- end -}} {{- return (uniq $authors) -}} |