diff options
author | tdro <tdro@noreply.example.com> | 2022-06-15 22:40:02 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-15 22:40:02 -0400 |
commit | b03fbdca3b70587cb46b28aadd30d42fe0b29f50 (patch) | |
tree | 8d174422cb47356e8c92c9ac4964eba2cebbfa58 /themes/default/layouts/partials/author-list.html | |
parent | 9cba41a32db4a059e46ea4daf217d0c8f41b9791 (diff) | |
download | canory-b03fbdca3b70587cb46b28aadd30d42fe0b29f50.tar.gz canory-b03fbdca3b70587cb46b28aadd30d42fe0b29f50.tar.bz2 canory-b03fbdca3b70587cb46b28aadd30d42fe0b29f50.zip |
themes/default/layouts/partials/head: Try variable context
Try explicit inputs on default templates. Header links
properly reflects home configuration now. Initial experiment for
showing follow list.
Diffstat (limited to 'themes/default/layouts/partials/author-list.html')
-rw-r--r-- | themes/default/layouts/partials/author-list.html | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/themes/default/layouts/partials/author-list.html b/themes/default/layouts/partials/author-list.html index 5435592..a5d50cb 100644 --- a/themes/default/layouts/partials/author-list.html +++ b/themes/default/layouts/partials/author-list.html @@ -1,16 +1,13 @@ -<author-list> - {{ $authors := slice }} - - {{- range $index, $data := .Site.RegularPages -}} - {{ $authors = $authors | append $data.Type }} - {{- end -}} - - {{ $authors = shuffle (uniq $authors) }} +{{ $authors := slice }} +{{ range $index, $data := .Site.RegularPages -}} + {{- $authors = $authors | append $data.Type -}} +{{- end -}} +<author-list> <h1>Authors</h1> <section> - {{ range $author := first 3 $authors }} - {{ $data := index $.Site.Data.authors $author | default "default" }} + {{- range $author := first 3 (shuffle (uniq $authors)) -}} + {{ $data := index $.Site.Data.authors $author | default "default" }} {{ partial "author-card.html" (dict "Data" $data) }} {{ end }} </section> |