---
layout: layouts/base.njk
title: Categories
withSidebar: true
pagefindIgnore: true
permalink: categories/
eleventyImport:
collections:
- categories
---
Categories
Browse posts by category.
({{ collections.categories.length }} categories)
{% if collections.categories.length > 0 %}
{% set grouped = collections.categories | categoryGroupByRoot %}
{% for group in grouped %}
-
{# Root tag #}
{{ group.root }}
{% if group.children.length > 0 %}
{{ group.children.length }} sub-tag{% if group.children.length != 1 %}s{% endif %}
{% endif %}
{# Child tags indented beneath root #}
{% if group.children.length > 0 %}
{% for child in group.children %}
-
{{ child }}
{% endfor %}
{% endif %}
{% endfor %}
{% else %}
No categories yet.
{% endif %}