From 2d3efc957712d8611efebd56640fc2fc298ef842 Mon Sep 17 00:00:00 2001 From: tdro Date: Sun, 2 Apr 2023 06:17:39 -0400 Subject: themes/default/layouts/_default/home.authors: Don't shuffle Link to authors page in right column section and use order from configuration --- assets/css/default.css | 8 ++++++-- themes/default/layouts/_default/home.authors.html | 2 +- themes/default/layouts/_default/home.authors.section.html | 2 +- themes/default/layouts/partials/author-list.html | 6 +++++- themes/default/layouts/partials/function-authors-slice.html | 6 ++++-- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index 54b48c9..8b42a08 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1558,6 +1558,10 @@ web-ring-item:not(:last-child) { display: block; } +web-ring aside { + padding: 1rem; +} + web-ring aside, author-list aside, following-list aside { @@ -1573,8 +1577,8 @@ following-list aside footer { background-color: var(--background); } -web-ring aside { - padding: 1rem; +author-list h1 a { + color: inherit; } author-list aside { 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" -}} -

Authors

+

+ + Authors + +