diff options
author | tdro <tdro@noreply.example.com> | 2023-12-30 16:39:52 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-12-30 16:39:52 -0500 |
commit | 937d0e35700c85c7d683dd33a7f542442d8ec11c (patch) | |
tree | d9b071862fdd2b51b9d0f9fb864cfbf4fb5a0df6 /themes/default/layouts/_default | |
parent | 3b43bb9fbe661cb35201082fca9b0924da22bb03 (diff) | |
download | canory-937d0e35700c85c7d683dd33a7f542442d8ec11c.tar.gz canory-937d0e35700c85c7d683dd33a7f542442d8ec11c.tar.bz2 canory-937d0e35700c85c7d683dd33a7f542442d8ec11c.zip |
config: Simplify author site data
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r-- | themes/default/layouts/_default/home.authors.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/home.authors.section.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/_default/home.authors.html b/themes/default/layouts/_default/home.authors.html index 87ebc3c..3854ebe 100644 --- a/themes/default/layouts/_default/home.authors.html +++ b/themes/default/layouts/_default/home.authors.html @@ -26,7 +26,7 @@ {{- $authors := partial "function-authors-slice.html" . -}} {{- range $author := $authors -}} - {{- $data := index $.Site.Data $author | default "default" -}} + {{- $data := index $.Site.Data $author -}} {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} {{- partial "author-card.html" (dict "Data" $data diff --git a/themes/default/layouts/_default/home.authors.section.html b/themes/default/layouts/_default/home.authors.section.html index 4374f69..20ffdc6 100644 --- a/themes/default/layouts/_default/home.authors.section.html +++ b/themes/default/layouts/_default/home.authors.section.html @@ -9,7 +9,7 @@ {{- if $modified -}} {{- range $author := first 3 $authors -}} - {{- $data := index $.Site.Data $author | default "default" -}} + {{- $data := index $.Site.Data $author -}} {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} {{- partial "author-card.html" (dict "Data" $data |