schonendveredelt.de/posts/index.html

48 lines
1.2 KiB
HTML
Raw Normal View History

2022-10-20 22:03:55 +02:00
---
layout: page
title: Artikel
background: '/img/bg-default.jpg'
---
{% for post in paginator.posts %}
<article class="post-preview">
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}">
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
{% else %}
<h3 class="post-subtitle">{{ post.excerpt | strip_html | truncatewords: 15 }}</h3>
{% endif %}
</a>
2022-10-20 22:28:47 +02:00
<p class="post-meta">Geschrieben von
2022-10-20 22:03:55 +02:00
{% if post.author %}
{{ post.author }}
{% else %}
{{ site.author }}
{% endif %}
2022-10-20 22:28:47 +02:00
am {{ post.date | date: '%d.%m.%Y' }}
2022-10-20 22:03:55 +02:00
</p>
</article>
<hr>
{% endfor %}
<!-- Pager -->
{% if paginator.total_pages > 1 %}
<div class="clearfix">
{% if paginator.previous_page %}
<a class="btn btn-primary float-left" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr;
2022-10-20 22:28:47 +02:00
Neuere<span class="d-none d-md-inline"> Artikel</span></a>
2022-10-20 22:03:55 +02:00
{% endif %}
{% if paginator.next_page %}
2022-10-20 22:28:47 +02:00
<a class="btn btn-primary float-right" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Ältere<span class="d-none d-md-inline"> Artikel</span> &rarr;</a>
2022-10-20 22:03:55 +02:00
{% endif %}
</div>
{% endif %}