aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.authors.section.html
blob: b0b1161c99b812a3713a8dad92603e40f9764d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{- $authors := partial "function-authors-slice.html" . -}}

{{- $modified := partial "function-page-modified.html"
  (dict
    "Context" .
    "Disable" true
  )
-}}

{{- if $modified -}}
  {{- range $author := first 3 $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 -}}