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

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/taxonomies_count.html')
-rw-r--r--layouts/partials/taxonomies_count.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/taxonomies_count.html b/layouts/partials/taxonomies_count.html
new file mode 100644
index 0000000..a17590d
--- /dev/null
+++ b/layouts/partials/taxonomies_count.html
@@ -0,0 +1,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 }} \ No newline at end of file