{{categories.length}}
{{#if (gt categories.length 1) }}
categories
{{else if (eq categories.length 0) }}
categories
{{else}}
category
{{/if}}
{{#each categories as |cat index|}}
- {{cat.category}} ({{cat.docCount}})
{{/each}}
{{#if spaceSettings}}
{{#link-to 'folder.settings' space.id space.slug (query-params tab="categories") class="btn btn-secondary font-weight-bold"}}{{categoryLinkName}}{{/link-to}}
{{/if}}