{{ define "styles" }} {{ $author := partial "author-user.html" . }} {{ 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 "author-user.html" . -}} {{- $users := where .Site.RegularPages "Section" $author -}} {{- $drafts := where .Site.RegularPages "Draft" true -}} {{- $filteredPages := $users | intersect $drafts -}} {{- $paginator := .Paginate $filteredPages }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ else }} {{ end }} {{ partial "pagination.html" . }} {{ end }} {{ define "right" }} {{- partial "navigator-right.html" . -}} {{ end }}