35 lines
No EOL
1.5 KiB
HTML
35 lines
No EOL
1.5 KiB
HTML
{% for post in paginator.posts %}
|
|
<article class="post">
|
|
<header class="post-header wrapper">
|
|
<h2 class="post-title"><a href="{{ post.url }}" rel="bookmark">{{ post.title }}</a></h2>
|
|
</header>
|
|
<div class="post-content wrapper">
|
|
{{ post.content }}
|
|
</div>
|
|
<footer class="wrapper">
|
|
<div class="post-footer">
|
|
<p>Veröffentlicht am <time class="post-date" datetime="{{ post.date | date: "%Y-%m-%d"}}">
|
|
<!-- Whitespace added for readability -->
|
|
{% assign m = post.date | date: "%-m" %}
|
|
{{ post.date | date: "%d" }}
|
|
{% case m %}
|
|
{% when '1' %}Januar
|
|
{% when '2' %}Februar
|
|
{% when '3' %}März
|
|
{% when '4' %}April
|
|
{% when '5' %}Mai
|
|
{% when '6' %}Juni
|
|
{% when '7' %}Juli
|
|
{% when '8' %}August
|
|
{% when '9' %}September
|
|
{% when '10' %}Oktober
|
|
{% when '11' %}November
|
|
{% when '12' %}Dezember
|
|
{% endcase %}
|
|
{{ post.date | date: "%Y" }}
|
|
</time> | <a href="{{ post.url }}" rel="bookmark">Permalink</a></p>
|
|
</div>
|
|
</footer>
|
|
</article>
|
|
{% endfor %}
|
|
{% include pagination.html %} |