diff options
author | tdro <tdro@noreply.example.com> | 2023-11-02 11:11:08 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-11-02 11:11:08 -0400 |
commit | c77a1e4d78f017aac84525e27c510ab56c96ede1 (patch) | |
tree | 28d86cc5eb0b5c4875e85db1483bb2ce589c2b8e /themes/default/layouts/_default/home.authors.section.html | |
parent | f372675eb5ab4f6acabae14479479c04c3d139f5 (diff) | |
download | canory-c77a1e4d78f017aac84525e27c510ab56c96ede1.tar.gz canory-c77a1e4d78f017aac84525e27c510ab56c96ede1.tar.bz2 canory-c77a1e4d78f017aac84525e27c510ab56c96ede1.zip |
themes/default/layouts/_default: Wrap more sections in modify
Keep it disabled
Diffstat (limited to 'themes/default/layouts/_default/home.authors.section.html')
-rw-r--r-- | themes/default/layouts/_default/home.authors.section.html | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/themes/default/layouts/_default/home.authors.section.html b/themes/default/layouts/_default/home.authors.section.html index e665b66..4374f69 100644 --- a/themes/default/layouts/_default/home.authors.section.html +++ b/themes/default/layouts/_default/home.authors.section.html @@ -1,11 +1,20 @@ {{- $authors := partial "function-authors-slice.html" . -}} -{{- range $author := first 3 $authors -}} -{{- $data := index $.Site.Data $author | default "default" -}} -{{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} -{{- partial "author-card.html" (dict - "Data" $data - "Date" $date +{{- $modified := partial "function-page-modified.html" + (dict + "Context" . + "Disable" true ) -}} + +{{- if $modified -}} + {{- range $author := first 3 $authors -}} + {{- $data := index $.Site.Data $author | default "default" -}} + {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}} + {{- partial "author-card.html" (dict + "Data" $data + "Date" $date + ) + -}} + {{- end -}} {{- end -}} |