--- layout: layouts/base.njk withSidebar: true pagefindIgnore: true pagination: data: collections.categories size: 1 alias: category permalink: "categories/{{ category | slugify }}/" eleventyComputed: title: "{{ category }}" ---

{{ category }}

Posts tagged with "{{ category }}".

{% set categoryPosts = [] %} {% for post in collections.posts %} {% if post.data.category %} {% if post.data.category is string %} {% if post.data.category == category %} {% set categoryPosts = (categoryPosts.push(post), categoryPosts) %} {% endif %} {% else %} {% if category in post.data.category %} {% set categoryPosts = (categoryPosts.push(post), categoryPosts) %} {% endif %} {% endif %} {% 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