Welcome to mirror list, hosted at ThFree Co, Russian Federation.

taxonomies_count.html « partials « layouts - github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a17590d3fd9ab637d9e2b0e9f3ff145f565da5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{if .Site.Params.Info.taxonomiesCount}}
{{ $title := urlize .Title }}
  {{ range $taxonomy_name, $taxonomy := .Site.Taxonomies }}
    {{ if eq $.Section $taxonomy_name}}
      {{ range $key, $value := $taxonomy }}
        {{ $term := urlize $key }}
        {{ if eq $title $term }}
          ({{ $value.Count }})
        {{ end }}
      {{ end }}
    {{ end }}
  {{ end }}
{{ end }}