{{- define "styles" -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $author = $author.user -}}
{{- end -}}
{{- define "header" -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $authors := where .Site.RegularPages "Section" $author.user -}}
{{- $drafts := where .Site.RegularPages "Draft" true -}}
{{- $filteredPages := $authors | intersect $drafts -}}
{{- $paginator := .Paginate $filteredPages -}}
{{- partial "navigator-middle.html"
(dict
"Context" .
"IconLabel" "Back"
"Id" "back"
"Title" "Drafts"
"Icon" "arrow-left"
"Subtitle" (print (partial "count-drafts.html" .) " " "Total")
"Href" (or (and (gt $paginator.PageNumber 1) ($paginator.Paginator.Prev.URL | absURL)) "/")
)
-}}
{{- partial "profile.html" . -}}
{{- end -}}
{{- define "middle" -}}
{{- range .Paginator.Pages -}}
{{- partial "render-embed.html" . -}}
{{- else -}}
{{- end -}}
{{- end -}}
{{- define "footer" -}}
{{- partial "pagination.html" . -}}
{{- partial "footer.html" . -}}
{{- end -}}
{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
{{- end -}}