diff options
author | tdro <tdro@noreply.example.com> | 2022-07-26 19:18:03 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-26 19:18:03 -0400 |
commit | 9ac657384e43a8009ae47fb7e149597a18596910 (patch) | |
tree | baf19b89f83dbbdfba576fe564997859055892d3 | |
parent | 3c061eed0ed1e35455d115ee79ec93789acc3a5e (diff) | |
download | canory-9ac657384e43a8009ae47fb7e149597a18596910.tar.gz canory-9ac657384e43a8009ae47fb7e149597a18596910.tar.bz2 canory-9ac657384e43a8009ae47fb7e149597a18596910.zip |
themes/default/layouts/partials/author-list: Should be an aside
-rw-r--r-- | assets/css/default.css | 6 | ||||
-rw-r--r-- | themes/default/layouts/partials/author-list.html | 4 | ||||
-rw-r--r-- | themes/default/layouts/partials/author-picture.html | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index 0958e2e..6be5745 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1193,9 +1193,9 @@ web-ring-item:not(:last-child) { display: block; } -following-list aside, web-ring aside, -author-list section { +author-list aside, +following-list aside { background-color: #f9f9f9; background-color: var(--widget-background); border-radius: 1rem; @@ -1205,7 +1205,7 @@ web-ring aside { padding: 1rem; } -author-list section { +author-list aside { display: block; } diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html index bfeaa16..127447f 100644 --- a/themes/default/layouts/partials/author-list.html +++ b/themes/default/layouts/partials/author-list.html @@ -5,10 +5,10 @@ <author-list> <h1>Authors</h1> - <section> + <aside> {{- range $author := first 3 (shuffle (uniq $authors)) -}} {{ $data := index $.Site.Data $author | default "default" }} {{ partial "author-card.html" (dict "Data" $data) }} {{ end }} - </section> + </aside> </author-list> diff --git a/themes/default/layouts/partials/author-picture.html b/themes/default/layouts/partials/author-picture.html index 88d2918..b3b4125 100644 --- a/themes/default/layouts/partials/author-picture.html +++ b/themes/default/layouts/partials/author-picture.html @@ -3,7 +3,7 @@ {{- $image := resources.Get $path -}} {{- $404image := resources.Get "data/media/404.png" -}} {{- $dimensions := "160x160" -}} -{{- $author := partial "author-user.html" . }} +{{- $author := partial "author-user.html" . -}} {{- with .Params.feed -}} {{- else -}} |