aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-04-02 06:17:39 -0400
committertdro <tdro@noreply.example.com>2023-04-02 06:58:06 -0400
commit2d3efc957712d8611efebd56640fc2fc298ef842 (patch)
tree70b1c4ecfb88ace85eeacb7d7f843ee347ab86c8 /themes/default/layouts/partials
parent1141a18bc478e7f954b065c0d230f705a9eabc4a (diff)
downloadcanory-2d3efc957712d8611efebd56640fc2fc298ef842.tar.gz
canory-2d3efc957712d8611efebd56640fc2fc298ef842.tar.bz2
canory-2d3efc957712d8611efebd56640fc2fc298ef842.zip
themes/default/layouts/_default/home.authors: Don't shuffle
Link to authors page in right column section and use order from configuration
Diffstat (limited to 'themes/default/layouts/partials')
-rw-r--r--themes/default/layouts/partials/author-list.html6
-rw-r--r--themes/default/layouts/partials/function-authors-slice.html6
2 files changed, 9 insertions, 3 deletions
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) -}}