{{- $author := partial "function-authors-data.html" . -}} {{- $author = $author.user -}} {{ $count := 0 }} {{ range .Site.Pages }} {{ if and (eq .Type $author) .Draft }} {{ $count = add $count 1 }} {{ end }} {{ end }} {{ print (lang.FormatNumberCustom 0 $count) " " "Drafts" }}