---
layout: default
title: thomasbas Rezeptesammlung
---

<div id="home">
  <h1>Rezepte</h1>


  {% for post in paginator.posts %}
  <!-- 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 %}

  {% if paginator.total_pages > 1 %}
  <div class="pagination btn-group">
    {% if paginator.previous_page %}
      <a class="btn btn-default" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; zurück</a>
    {% else %}
      <span class="btn btn-default">&laquo; zurück</span>
    {% endif %}

    {% for page in (1..paginator.total_pages) %}
      {% if page == paginator.page %}
        <em class="btn btn-default">{{ page }}</em>
      {% elsif page == 1 %}
        <a class="btn btn-default" href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
      {% else %}
        <a class="btn btn-default" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
      {% endif %}
    {% endfor %}

    {% if paginator.next_page %}
      <a class="btn btn-default" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">vor &raquo;</a>
    {% else %}
      <span class="btn btn-default">vor &raquo;</span>
    {% endif %}
  </div>
  {% endif %}

</div>
