aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/count-marks.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/count-marks.html')
-rw-r--r--themes/default/layouts/partials/count-marks.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/themes/default/layouts/partials/count-marks.html b/themes/default/layouts/partials/count-marks.html
index b251555..deb532d 100644
--- a/themes/default/layouts/partials/count-marks.html
+++ b/themes/default/layouts/partials/count-marks.html
@@ -1,11 +1,6 @@
-{{- $count := 0 -}}
{{- $author := .Section -}}
{{- $items := where .Site.RegularPages ".Params.marked" true -}}
{{- $authors := where .Site.RegularPages "Section" $author -}}
{{- $filteredPages := $authors | intersect $items -}}
-{{- range $filteredPages -}}
- {{- $count = add $count 1 -}}
-{{- end -}}
-
-{{- print (lang.FormatNumberCustom 0 $count) -}}
+{{- print (lang.FormatNumberCustom 0 (len $filteredPages)) -}}