---
layout: default
title: "Kategorien"
---

<h2>Kategorien</h2>

<div id="category-index" class="container">
  <ul id="categories">
    {% for category in site.categories %}
	<li>
		<a href="/categories/{{category | first | downcase}}/">{{ category | first | NicifyTags }}</a>
{% assign counter = 0 %}
{% assign catname = category | first %}
{% for post in site.posts  %}
    {% for cat in post.categories %}
        {% if cat == catname %}
            {% assign counter = counter | plus: 1 %}
        {% endif %}
    {% endfor %}
{% endfor %}
{% if counter == 1 %}
        <span class="small"> ({{ counter }} Rezept)</span>
{% else %}
        <span class="small"> ({{ counter }} Rezepte)</span>
{% endif %}
    </li>
    {% endfor %}
  </ul>
</div>
