aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-28 00:54:50 -0500
committertdro <tdro@noreply.example.com>2022-12-28 00:54:50 -0500
commitc1a365ec93422bf34896caa18755fd6b1bf060ee (patch)
tree86cdc4ede2297253ffcf0a77a71b257b40ccae67 /themes/default/layouts/_default
parent773db7d222adcf5c4e47bf06dd071417831bfc60 (diff)
downloadcanory-c1a365ec93422bf34896caa18755fd6b1bf060ee.tar.gz
canory-c1a365ec93422bf34896caa18755fd6b1bf060ee.tar.bz2
canory-c1a365ec93422bf34896caa18755fd6b1bf060ee.zip
themes/default/layouts/_default/home.authors: Mix in dates
This could use the page variable directly but it might be useful for passing stacks of variable data
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/home.authors.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/default/layouts/_default/home.authors.html b/themes/default/layouts/_default/home.authors.html
index 6eb6617..8e63d51 100644
--- a/themes/default/layouts/_default/home.authors.html
+++ b/themes/default/layouts/_default/home.authors.html
@@ -24,7 +24,12 @@
{{- range $author := shuffle $authors -}}
{{ $data := index $.Site.Data $author | default "default" }}
- {{ partial "author-card.html" (dict "Data" $data) }}
+ {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}}
+ {{- partial "author-card.html" (dict
+ "Data" $data
+ "Date" $date
+ )
+ -}}
{{ end }}
{{ end }}