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 | 9e126e0c3a9546974f91fc83edcdaf5310728c2a (patch) | |
tree | 4f2934710bf87bf219a873fbfadcb92905f6b503 /themes/default/layouts/_default | |
parent | c3f5fba9a08339035b5a409e7acef144f76fa975 (diff) | |
download | canory-9e126e0c3a9546974f91fc83edcdaf5310728c2a.tar.gz canory-9e126e0c3a9546974f91fc83edcdaf5310728c2a.tar.bz2 canory-9e126e0c3a9546974f91fc83edcdaf5310728c2a.zip |
config: Data mounting nesting
Apparently nesting/namespacing works. Dicey code bootstrapping/generation.
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 3854ebe..0662285 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 -}} + {{- $data := index $.Site.Data.authors $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 20ffdc6..b0b1161 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 -}} + {{- $data := index $.Site.Data.authors $author -}} {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} {{- partial "author-card.html" (dict "Data" $data |