aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/count-feeds.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/count-feeds.html')
-rw-r--r--themes/default/layouts/partials/count-feeds.html11
1 files changed, 3 insertions, 8 deletions
diff --git a/themes/default/layouts/partials/count-feeds.html b/themes/default/layouts/partials/count-feeds.html
index b3053e2..68495da 100644
--- a/themes/default/layouts/partials/count-feeds.html
+++ b/themes/default/layouts/partials/count-feeds.html
@@ -1,12 +1,7 @@
-{{- $author := partial "function-authors-data.html" . -}}
-{{- $count := 0 -}}
+{{- $author := .Section -}}
{{- $feeds := where .Site.Pages "Params.feed" "ne" nil -}}
-{{- $authors := where .Site.Pages "Section" $author.user -}}
+{{- $authors := where .Site.Pages "Section" $author -}}
{{- $filteredPages := $authors | intersect $feeds -}}
-{{- range $filteredPages -}}
- {{- $count = add $count 1 -}}
-{{- end -}}
-
-{{- print (lang.FormatNumberCustom 0 $count) -}}
+{{- print (lang.FormatNumberCustom 0 (len $filteredPages)) -}}