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