You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8 KiB

---
layout: default
title: rezepte.thomasba.de
---
<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 }}">{{ category }}</a> {% endfor %}</p>
</div>
</div>
<!-- post ende -->
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ '/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}
</div>
{% endif %}
</div>