diff options
Diffstat (limited to 'themes/default/layouts/partials/count-authors.html')
-rw-r--r-- | themes/default/layouts/partials/count-authors.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/count-authors.html b/themes/default/layouts/partials/count-authors.html new file mode 100644 index 0000000..7a39329 --- /dev/null +++ b/themes/default/layouts/partials/count-authors.html @@ -0,0 +1,6 @@ +{{ $authors := slice }} +{{- range $index, $data := where .Site.RegularPages ".Params.hidden" "!=" "true" -}} + {{ $authors = $authors | append $data.Type }} +{{- end -}} + +{{ print (lang.FormatNumberCustom 0 (len (uniq $authors))) " " "Authors" }} |