30 lines
922 B
HTML
30 lines
922 B
HTML
|
---
|
||
|
layout: default
|
||
|
---
|
||
|
|
||
|
<div class="catalogue">
|
||
|
{% for post in paginator.posts %}
|
||
|
<a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
|
||
|
<div>
|
||
|
<time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%Y-%m-%d" }}</time>
|
||
|
<h1 class="catalogue-title">{{ post.title }}</h1>
|
||
|
<div class="catalogue-line"></div>
|
||
|
|
||
|
<p>{% if post.perex -%}{{ post.perex }}{% else -%}{{ post.content | strip_html | truncatewords: 30 }}{% endif -%}</p>
|
||
|
|
||
|
</div>
|
||
|
</a>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
|
||
|
<div class="pagination">
|
||
|
{% if paginator.previous_page %}
|
||
|
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">←</a>
|
||
|
{% endif %}
|
||
|
{% if paginator.next_page %}
|
||
|
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">→</a>
|
||
|
{% endif %}
|
||
|
|
||
|
<span>{{ paginator.page }}</span>
|
||
|
</div>
|