riq0h.jp/themes/qiss/layouts/partials/taxonomies_count.html
2023-08-21 10:07:01 +09:00

13 lines
No EOL
383 B
HTML

{{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 }}