blob: 0662285145aa2efb6d7b3accf8b586cd27c9858b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{{- define "title" -}}Authors — {{ end -}}
{{- define "description" -}}A list of all authors — {{ end -}}
{{- define "styles" -}}
<style>
{{ partial "navigator.css.html" (dict "Link" "/authors/") | safeCSS }}
</style>
{{- 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 -}}
|