{{- $query := first 1 (where (where .Context.Site.Pages "Kind" "taxonomy") "Type" "categories") -}} {{- $context := .Context -}} {{- $limit := default 10 .Params.limit -}} {{- if $query -}} {{- $categoriesPage := index $query 0 -}}
{{ partial "helper/icon" "categories" }}

{{ default "Categories" $categoriesPage.Title }}

{{ range first $limit $context.Site.Taxonomies.categories.ByCount }} {{ .Page.Title }} {{ end }}
{{- else -}} {{- warnf "Categories page not found. Please enable the categories taxonomy." -}} {{- end -}}