{{- define "title" -}} {{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" -}} {{- if .Site.Params.with_site_title }} {{ .Site.Params.title_delimiter }} {{ .Site.Title }}{{- end -}} {{- end -}} {{- define "content" -}} {{- $taxonomies := .Data.Plural -}} {{- $icon := .Params.titleIcon | default (dict "Taxonomy" .Data.Singular "Slot" "title" | partial "function/get-taxonomy-icon.html") -}}
{{- /* Title */ -}}

{{- dict "Class" (add $icon " me-1") | partial "plugin/icon.html" -}} {{- .Params.Title | default (T $taxonomies) | default $taxonomies | dict "Some" | T "allSome" }} {{ len .Data.Terms.ByCount }}

{{- /* Render different taxonomies */ -}} {{- $template := cond ( eq $taxonomies "tags") "tags" "taxonomies" -}} {{- .Render $template -}}
{{- end -}}