---
layout: default
---

<h2 class="category">{{ page.title }}</h2>

{% for post in site.categories[page.category] %}
<!-- post anfang -->
<div class="media">
  <a class="media-left media-middle index" href="{{ post.url }}">
    {% if post.thumbnail != null %}
    <img src="{{ post.thumbnail | escape_once }}">
    {% elsif post.image != null %}
    <img src="{{ post.image | escape_once }}">
    {% else %}
    <!--<img class="thumbnail" src="/images/no-thumbnail.png">-->
    <div class="thumb">Kein Bild<br>verfügbar</div>
    {% endif %}
  </a>
  <div class="media-body">
    <h2 class="media-heading"><a href="{{ post.url }}">{{ post.title }}</a></h2>
      <p class="meta">Gepostet am {{ post.date | localize: "%-d. %B %Y" }} in: {% for category in post.categories %}<a class="cat-link" href="/categories/{{ category | downcase }}">{{ category }}</a> {% endfor %}</p>
  </div>
</div>
<!-- post ende -->
{% endfor %}
