--- layout: layouts/base.njk withSidebar: true pagefindIgnore: true pagination: data: collections.categories size: 1 alias: category permalink: "categories/{{ category | nestedSlugify }}/" eleventyComputed: title: "{{ category }}" ---
{# Breadcrumb — only shown for nested paths like "tech/programming" #} {% set breadcrumb = category | categoryBreadcrumb %} {% if breadcrumb.length > 1 %} {% endif %}

{{ category }}

Posts tagged with "{{ category }}".

{# Direct child tags #} {% set childCats = collections.categories | categoryDirectChildren(category) %} {% if childCats.length > 0 %}

Sub-tags

{% endif %} {% set categoryPosts = [] %} {% for post in collections.posts %} {% if post.data.category | categoryMatches(category) %} {% set categoryPosts = (categoryPosts.push(post), categoryPosts) %} {% endif %} {% endfor %} {% if categoryPosts.length > 0 %}

{{ categoryPosts.length }} post{% if categoryPosts.length != 1 %}s{% endif %}

{% else %}

No posts found with this category.

{% endif %}
← All categories