{{ define "title" }} {{ .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "AllSome" }} - {{ .Site.Title }} {{ end }} {{ define "main_inner_class" }}{{.Data.Plural}} posts-expand{{ end }} {{ define "main" }}

{{ if eq .Data.Plural "categories" }} {{ T "CateTitle" }} {{ else if eq .Data.Plural "tags" }} {{ T "TagTitle" }} {{ end }}

{{ if eq .Data.Plural "categories" }} {{ $cats := .Site.Taxonomies.categories }}
{{ T "CatesCounterTitle" (.Scratch.Get "catsCount") | safeHTML }}
{{ end }} {{ if eq .Data.Plural "tags" }} {{ $tags := .Site.Taxonomies.tags }}
{{ T "TagsCounterTitle" (.Scratch.Get "tagsCount") | safeHTML }}
{{ $randNums := (seq 10) }} {{ range $name, $items := $tags }} {{ .Page.Title }} ({{ len $items }}) {{ end }}
{{ end }}
{{ end }}