{{- define "title" -}}Authors — {{ end -}} {{- define "description" -}}A list of all authors — {{ end -}} {{- define "styles" -}} {{- end -}} {{- define "header" -}} {{- partial "navigator-middle.html" (dict "Title" "Authors" "Subtitle" (print (partial "count-authors.html" .) " " "Total") "Icon" "arrow-left" "IconLabel" "Back" "Href" "/" "Id" "back" "Context" . ) -}} {{- end -}} {{- define "middle" -}} {{- partial "generate-authors" . -}} {{- $authors := partial "function-authors-slice.html" . -}} {{- range $author := $authors -}} {{- $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 "Date" $date ) -}} {{- end -}} {{- end -}} {{- define "right" -}} {{- partial "navigator-right.html" . -}} {{- end -}}