blob: 1d68e0ae194bc586aaadf0da69f73fa8d6bac915 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{- $author := .Section -}}
{{- $notFeeds := where .Site.RegularPages "Params.feed" "eq" nil -}}
{{- $authors := where .Site.RegularPages "Section" $author -}}
{{- $filteredPages := $authors | intersect $notFeeds -}}
{{- $count := 0 -}}
{{- range first 100 $filteredPages -}}
{{- if eq $count 10 -}}
{{- break -}}
{{- end -}}
{{- if or
(in .Content "</video>")
(in .Content "</picture>")
(in .Content "</youtube-video>")
-}}
{{- $count = add $count 1 -}}
{{- end -}}
{{- end -}}
{{- print (lang.FormatNumberCustom 0 $count) -}}
|